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

April 22nd, 2009 Categories: cPanel, Hot Tips

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.


mysqlcheck –all-databases -r #repair
mysqlcheck –all-databases -a #analyze
mysqlcheck –all-databases -o #optimize


Tags: , , , , ,
No comments yet.
You must be logged in to post a comment.