myisamchkMyISAM table in a database corresponds to three files in the database directory:
| File | Purpose |
|---|---|
tbl_name.frm | Definition (format) file |
tbl_name.MYD | Data file |
tbl_name.MYI | Index file |
myisamchk works by creating a copy of the .MYD data file row by row.
.MYD file and renaming the new file to the original file name.
--quick option is used, the temporary file is not created.
.MYD file is correct and generates only a new index file without touching the .MYD file.
myisamchk automatically detects whether the .MYD file is corrupt and aborts the repair if it is corrupt.
-e option does a complete and thorough check of all data.
-e means extended check.
What are symptoms of corrupted tables?
© 2007 John Michael Pierobon