修复 Table ‘xxx’ is marked as crashed and should be repaired!!

08月 29th, 2007

  今天在用自己写的脚本导出SQL的时候发生了错误,提示Table XXX is marked as crashed and should be repaired when using LOCK TABLES,应该是数据表结构或内容损坏,使用命令myisamchk修复数据库的MYI文件即可

myisamchk -c -r *.MYI

Leave a Reply