How to repair all MySQL databases on a server in one go

Status
Not open for further replies.

Albert.Nawaro

Active Member
88
2012
4
0
Here's a quick & ditry trick to repair all MySQL databases on a server, in one go.

Run the following commands on your server, in the console as root.

PHP Code:
PHP:
mysqlcheck --all-databases -r #repair 
mysqlcheck --all-databases -a #analyze 
mysqlcheck --all-databases -o #optimize
 
Status
Not open for further replies.
Back
Top