Assume we have a database called test with two
tables: table1, which is an ISAM table, and
table2, which is a MyISAM table. First, check your
table, using the appropriate utility. If you use
myisamchk or isamchk, make
sure your MySQL server is not running to prevent the server from
writing to the file while you are reading it.
$ myisamchk table2.MYI
Data records: 0 Deleted blocks: 0
- check file-size
- check key delete-chain
- check record delete-chain
- check index reference
$ isamchk table1.ISM
Checking ISAM file: table1.ISM
Data records: 0 Deleted blocks: 0
- check file-size
- check delete-chain
- check index reference
$ mysqlcheck test table2
test.table2 OK
This output shows that there are no errors in either of the tables.