Over time, busy databases such as WordPress accumulate overhead from deleted and changed rows. Optimizing the tables in phpMyAdmin tidies them up and can help queries run efficiently.
1. Log in to your cPanel account.
2. In the Databases section, click on phpMyAdmin.![]()
3. Click on the Expand icon from the navigation tree in the left sidebar. 
4. Scroll down and mark Check All. Click on the drop-down option and select Optimize tables.
The table has been successfully optimized.
Back up first
Optimizing rebuilds tables. It is generally safe, but download a database backup before you start, especially for important sites.
When to do it
Run it at a quiet time for large databases, since tables can be briefly locked. For most small business sites it takes a few seconds.
Keep WordPress lean
Deleting old revisions, spam comments and unused plugins reduces what needs optimizing in the first place.
Frequently asked questions
Will optimizing delete my data? No. It reorganises storage and does not remove content.
How often should I optimize? Occasionally, for example every few months, or after large deletions.
Can I use a plugin instead? Yes, but phpMyAdmin works without installing anything.
Related guides
- Create a database in cPanel
- Create a database username
- Add a user to a database and grant privileges
- Delete a database in cPanel
Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.
Found this useful? Share it.
