Manage My Databases includes tools to check a database for errors and attempt repairs.
Check
- Select the database from Check Database.
- Run the check.
- Review any reported table errors.
Repair
- Preserve a current recoverable copy and verify that the table engine supports repair.
- Select the database from Repair Database.
- Run the repair.
- Review the result before testing the application.
A successful repair does not replace a backup strategy. If the database contains important production data, preserve a recoverable copy before making large structural changes.
Back up the affected tables before any repair. Repair support depends on the storage engine: MySQL REPAIR TABLE is not an InnoDB recovery method. An unsupported-repair result does not establish that the table is corrupt.
Documentation for this guidance: dev.mysql.com — repair table.