Home > DeveloperSection > Interviews > How can we repair a MySQL table?

Posted on    June-13-2011 4:35 AM

 MYSQL MYSQL 
Ratings:
 1 Answer(s)
  1017  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    June-13-2011 12:00 AM

The syntex for repairing a mysql table is:

REPAIR TABLE tablename
REPAIR TABLE tablename QUICK
REPAIR TABLE tablename EXTENDED

This command will repair the table specified.
If QUICK is given, MySQL will do a repair of only the index tree.
If EXTENDED is given, it will create index row by row.

Don't want to miss updates? Please click the below button!

Follow MindStick