Repair a database


To repair a database using the default MyISAM storage engine use:
# mysqlcheck  -r  databasename
If the above command fails to repair a myisam table, you can attempt to use the following repair command for rebuilding table structures from .frm files in the event .MYI headers are missing or corrupt:
# mysqlcheck  -r  --use-frm  databasename
To repair all databases on a server:
# mysqlcheck  --repair  --all-databases

Comments

Popular posts from this blog

SVN: File remains in conflict

HowTo: Enable extended logging for exim

12 tweakings for WHM/cPanel to speed up WordPress