Sunday, February 7, 2016

MySQL: Repair all tables in one go

The command is this:
mysqlcheck -u root -p --auto-repair --check --all-databases
You must supply the password when asked.

Or you can run this one (in a script for automation) but it's not recommended because the password is written in clear text:
mysqlcheck -u root --password=THEPASSWORD --auto-repair --check --all-databases
 


No comments:

Post a Comment