Techn4b’s Blog

November 30, 2009

MySQL 5 – check and repair database

Filed under: Linux, SQL — Tags: , , , , — techn4b @ 10:55

Shell> mysqlcheck –all-databases -p –auto-repair

Default user root, with given password.

More Information:

Example Output:

warning  : Table is marked as crashed
error    : Size of datafile is: 593178624         Should be: 593179500
error    : Corrupt

Repairing tables
info     : Found block that points outside data file at 593176692
status   : OK

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at

%d bloggers like this: