码迷,mamicode.com
首页 > 数据库 > 详细

导出Mysql数据库出错:Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES的解决方法

时间:2015-05-25 19:58:36      阅读:993      评论:0      收藏:0      [点我收藏+]

标签:

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的解决方法

标签:

原文地址:http://www.cnblogs.com/bangqi/p/4528490.html

(1)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!