通常用repair table tbname 即可
但是……..總是有例外的
mysql> repair table tb1 ;
+———+——–+———-+——————————————————-+
| Table | Op | Msg_type | Msg_text |
+———+——–+———-+——————————————————-+
| db1.tb1 | repair | Error | Incorrect key file for table ‘tb1’; try to repair it |
| db1.tb1 | repair | error | Corrupt |
+———+——–+———-+——————————————————-+
2 rows in set (0.00 sec)
拜訪google大神之後
實驗的結果……….
Use:
repair table tablename use_frm;