4

I deleted 1M rows from a database table. Surprisingly its size did not decrease. Then I have tried: FLUSH TABLES; but whey I ran this statement on phpMyAdmin of my cPanel then I encountered below error:

#1227 - Access denied; you need (at least one of) the RELOAD privilege(s) for this operation 

How can I decrease my table size and clear its cache?

2
  • possible duplicate of flush tables - access denied Commented Aug 4, 2015 at 13:09
  • I'm seeking to know are there any methods to solve this problem? Commented Aug 4, 2015 at 13:14

2 Answers 2

9

Try optimize table command

OPTIMIZE TABLE <tablename>; 
Sign up to request clarification or add additional context in comments.

Comments

4

In phpMyAdmin, click on the database name to show the tables in the main panel. Then tick the checkbox next to the table name you want to decrease, and in the "With selected" drop-down under the list of tables, choose "Optimize".

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.