Repair Table repairs a possibly corrupted table.
Hint: Just simply right-click the table and select Maintain Tables -> Repair Tables.Repair Table returns a result set with the following columns:
Column |
Value |
Table | The table name. |
Op | Always analyze. |
Msg_type | One of status, error, info, or warning. |
Msg_text | The message. |
You might get many rows of information for each repaired table. The last row has a Msg_type value of status and Msg_test normally should be OK. If you do not get OK, you should try repairing the table with myisamchk --safe-recover. Repair Table does not yet implement all the options of myisamchk. With myisamchk --safe-recover, you can also use options that Repair Table does not support, such as --max-record-length.
If Quick is given, Repair Table tries to repair only the index tree.
If you use Extended, MySQL creates the index row by row instead of creating one index at a time with sorting.
Related topics:
Analyze Tables
Check Tables
Optimize Tables