This article describes how to repair the MySQL database using cPanel, WHM, and phpMyAdmin.
Repair MySQL database through cPanel
1. Log in to cPanel.
2. Under the Databases section of cPanel, click on MySQL Databases.
3. Under Modify Databases section, select the database from the Repair a Database drop-down and click the Repair the Database button.
Repair MySQL database through WHM
1. Log in to WHM.
2. Under the SQL Services section, select the Repair a MySQL database option.
3. Select the database you wish to repair from the list of all databases and click on the Repair Database button.
Repair MySQL database through phpMyAdmin
If you can access cPanel, follow the steps below to repair the MySQL database.
1. Log in to cPanel.
2. Under the Databases section of the cPanel, click on phpMyAdmin. This will open the phpMyAdmin administration page in a new window
3. Click on the database you wish to repair at the left panel.
4. At the right pane, select the check boxes of the database table. If you want to repair all tables, select the "check all" option.
5. In the With selected list box, select "Repair table."
If you have access to WHM, follow the below-mentioned steps to repair the MySQL database.
1. Log in to WHM.
2. Under the SQL Services section of the WHM, click on phpMyAdmin. This will open the phpMyAdmin administration page in a new window.
3. On the left pane, select and click on the database you wish to repair.
4. On the right pane, select the check boxes of the database table. If you want to repair all tables, choose the check all option.
5. In the With selected list box, select Repair table.
→ Looking to repair a MySQL Database through Linux and Windows command line?
Please refer to Repair MySQL Database for more details.
→ Looking to administrate MySQL server through MySQLAdmin commands?
Please refer to Fix Administrate MySQL Using Commands for more details.
→ Want to take MySQL Database backup using the command line?
Please refer to Take MySQL Database Backup for more details.
→ Looking to increase Max_User_connection for MySQL in Linux?
Please refer to Increase max_user_connection for more details.