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