REPAIR TABLE table_name[,table_name,...] [options]

Description: Repairs a possibly corrupted table, the equivalent of myisamchk -r table_name. Returns a resultset table showing the status after running the command.

This command is rarely used, except when database corruption has occurred, when it should manage to recover corrupted data.

options can be any number of the following, separated by spaces if more than one is specified:

  • QUICK— Performs a repair of the index tree only

  • EXTENDED— Creates the index row by row

  • USE_FRM— Re-creates the index if it is missing or badly corrupted (MySQL 4.0.2 onward)

Limitations: MyISAM tables

Description in: Day 16

See also: CHECK TABLE

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.70.60