mysql 修复表
錯誤提示:
ERROR 126 (HY000): Incorrect key file for table '.\datadb\cdee.MYI'; try to??repair it
可以看出cdee這個表損壞了
進(jìn)行數(shù)據(jù)表修復(fù),進(jìn)入到這個表所在的庫:repair table cdee
?
mysql> REPAIR TABLE ?cdee;
+------------------+--------+----------+----------+
| Table ? ? ? ? ? ?| Op ? ? | Msg_type | Msg_text |
+------------------+--------+----------+----------+
| datadb.cdee| repair | status ? | OK ? ? ? |
+------------------+--------+----------+----------+
Msg_text的值為OK即搞掂了
網(wǎng)上也有說如果報錯Can’t open file: ‘[Table]cdee.MYI’之類的
repair table 這個命令卻不行了
如果報這個錯誤可以使用此命令:repair table cde use_frm
這個命令沒試過,不過有同行嘗試是ok的
?
?
?
?
轉(zhuǎn)載于:https://blog.51cto.com/bguncle/898692
總結(jié)
- 上一篇: AP1242G胖转瘦,廋转胖
- 下一篇: mysql导入sql文件