In order to repair the database, open the required database.
Select the tables that need to be repaired and pick the 'Repair' table action from the drop-down menu located below the tables' list.
The tables will be repaired and you will get a confirmation screen.
Optimising the Database
You can also optimize the databases through phpMyadmin. Open the database which you want to optimize.
Select the tables that need optimization.
From the drop-down menu pick the Optimize table option.
After the tables' optimization a confirmation message with a list of the optimized tables will be visualized on the screen.