Skip to content
WJunction - Webmaster Forum

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

Status
Not open for further replies.
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.

About the author

A
Active Member · Joined
Windows Servers
88
Messages
4
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom