Check and Repair MySQL Databases

August 2, 2013

To check and repair all MySQL databases, you need to run this command from the CLI.

mysqlcheck -u root -p --auto-repair --check \
--optimize --all-databases

After that it will show you a screen if the tables are up to date, ok, etc.