How to Optimize a MySQL Database using phpMyAdmin
- Optimize Database
- Repair Database
Step 1: Login to phpMyAdmin
cPanel: (Shared, Reseller, SEO, Linux Dedicated, VPS with cPanel)- Login to cPanel
- Click on the phpMyAdmin button in the Databases section.
- Login to Plesk
- Click on the Websites & Domains tab.
- Click on the Databases icon.
- Click on the database you want to manage.
- Click on the Webadmin icon.
Step 2: Optimize Tables
- Select the database you want to optimize from the list in the left column, which should take you to the "structure" tab for the database.
- Select the tables you wish to optimize by checking the check box in front of each one, or clicking on Select All if you want to optimize all of them.
- On the drop down box that says "with selected..." select "Optimize Table." This will optimize the table and take you to a new screen.
How to Repair a Broken Database
If you get the following error, it can easily be fixed from within cPanel:
cpaneluser_database
is marked as crashed and needs to be repaired
Checking the Database
Even with different kinds of errors such as "supplied argument is not a valid" or "table attribute does not exist," the following steps can be used with this built-in cPanel test to try fixing the issue.- Log into cPanel and navigate to the Databases section.
- Click on the MySQL Databases icon.
- Under Modify Databases, look for the drop-down menu called Check DB.
- Select the database name which is having trouble.
- Click the Check DB button.
Repairing the Database
The checking process should reveal the cause of the problem. If the problem is "marked as crashed," then proceed with the steps listed below:- Go back to MySQL Databases.
- Under Modify Databases, look for the drop-down called Repair DB.
- Select the database name which is having trouble.
- Click the Repair DB button.
- Once complete, reload your web site.
No comments:
Post a Comment