mysqldump: Got error: 145: Table ‘wp_options‘ is marked as crashed and should be repaired when using LOCK TABLES
错误如上所示。
今天在给自己的wp网站搬家的时候,导出数据时发现导不出来,报了如上的错误,在网上找了一下资料,说是这张张被标记有问题,需要优化。参考:
http://www.cnblogs.com/hakuci/archive/2012/03/20/2407723.html
感谢黄兆张‘s Blog提供的资料,进入mysql的bin目录,通过如下命令顺利解决了问题:
myisamchk -c -r data/yourdatabasedir/wp_options.MYI
再来导出:
mysqldump -u root -p air>air.sql
当前目录下ls查看一下,已经有air.sql这个文件。OK。
导出Mysql数据库出错:Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES的解决方法
标签:
查看更多关于导出Mysql数据库出错:Got error: 145: Table 'wp_options的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did160873