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
Post a Comment