How to Repair database in Dedicated Server Hosting via WHM?


Linux Dedicated Server comes with root access and whm where you can repair the database. Databases have the potential to grow very large, particularly on sites that receive a lot of traffic or have a large amount of content. In such cases, periodic database optimization may help improve web site performance. They can also occasionally become corrupt or damaged. You can use the Compact and Repair Database command to prevent or fix these problems. The compact process does not compress your data,it makes your database file smaller by eliminating unused space. The Compact and Repair Database command can also help improve performance of your database.

PROCEDURE:

1.Log in to cPanel.
2.Under Databases section of cPanel, click on MySQL Databases
3.Under Modify Databases section, select the database from Repair a Database drop down and click on Repair the Database button.

Repair MySQL database through phpMyAdmin

If you have access to cPanel, follow below mentioned steps to repair MySQL database.

1.Log in to cPanel.
2.Under Databases section of the cPanel, click on phpMyAdmin. This will open phpMyAdmin administration page in new window.
3At left pane, click on database you wish to repair.
4.At right pane, select check boxes of the database table. If you want to repair all tables, select check all option.
5.In the With selected list box, select Repair table.

If you have access to WHM, follow below mentioned steps to repair MySQL database. 

1.Log in to WHM.
2.Under SQL Services section of the WHM, click on phpMyAdmin. This will open phpMyAdmin administration page in new window.
3.At left pane, select and click on database you wish to repair.
4.At right pane, select check boxes of the database table. If you want to repair all tables, select check all option.
5In the With selected list box, select Repair table.