MySQL Repair and Optimize Tables in phpMyAdmin
Occasionally the MySQL database may run slower than desired. This issue can be fixed quickly through phpMyAdmin.
- Log in to your Bluehost control panel.
- For the Rock user account, click on Advanced on the left-side navigation menu.
For the Legacy, from the top menu, click on hosting, then from the submenu, select databases.
- Under Databases, click on phpMyAdmin.
- On the left will be a list of databases. Select the one to repair/optimize.
- On the right, it will load all of the tables in your database. Scroll to the bottom and select Check All.
- Just to the right, select the Repair Table option in the drop-down list.
- This will list all the tables, with "OK" listed next to them.
- Click on the Structure tab.
- Click Check All again, and then choose to Optimize in the drop-down menu.
- The process is done!
Still Not Fixed?
If you are using InnoDB as a storage engine, we have noticed an issue regarding database size. For various reasons, it occasionally occurs that memory allocated to a customer for database usage is not released when it is no longer required by the database. This memory does not appear as in use when the database size is viewed using phpMyAdmin, but since it is still allocated to the customer account, the server-side administrative tools will include it in calculations of overall database memory usage and determinations of whether or not an account has exceeded the database memory limits specified in the terms of Service.
The repair/optimize function in phpMyAdmin will not correct this issue. The server-side tools report complete memory usage, which is the information required to determine the server's overall performance. That is why the server-side tools are used to determine usage for ToS compliance purposes. The phpMyAdmin does not correctly report all memory usage allocated to the account and is therefore not used for these calculations.