Incorrect key file for table './xx_db/xx_table.MYI'; try to repair it

异常,坏表?

运行程序突然报异常:Incorrect key file for table './xx_db/xx_table.MYI';try to repair it

解决办法:

可以先运行 CHECK TABLE表名检查下是否存在错误。

然后运行 REPAIR TABLE表名进行修复。

原文地址:https://www.cnblogs.com/toSeeMyDream/p/5574914.html