-
Step 1
Using telnet, ssh, or a local machine, connect to the mySql server and log into the mySql command-line tool. This can be done with mysql -p.
-
Step 2
Use the CHECK TABLE tablename FOR UPGRADE command to verify the table needs to be repaired.
-
Step 3
Exit the mysql command-line tool by typing x and pressing the "Enter" key. You will return to the shell command prompt.
-
Step 4
Dump the table with the mysqldump command: mysqldump databaseName tableName > dump.sql.
-
Step 5
Re-create the table in the database with the mysql command: mysql databaseName < dump.sql. This will rebuild the table and the table indexes.











