How to repair MySQL database in Linux SSH Commands?
You can easily repair a MySQL database in SSH. To do so, please follow the steps given below:
1. Log into your server via SSH.
2. If you have MySQL within your server (localhost), then you can easily repair the database, so, run below commands to repair a database:
sudo mysqlchek -r databasename
If you wish to repair only a particular table, then use the command as:
sudo mysqlchek -r databasename databasetablename
Also, if you do not have SSH service, you can manually log into your cPanle/phpMyAdmin/controlpanel to repair MySQL database. For more information, click here.