Table 'xxx'is marked as crashed and last (automatic) repair failed 修复

报该问题的是表引导坏了,需要修复表就行

修复方法如下:

步骤不要少了啊。。。。

1、service mysqld stop  停止mysql服务;

2、cd /www/server/mysql/bin  切换到该表目录下(注意:不切换过来会总提示myisamchk一些错误导致失败);

3、修改配置文件(不修改可能报错,修复完毕可以改回去)

[myisamchk]
key_buffer_size = 64M
sort_buffer_size = 100M
#read_buffer = 2M
#write_buffer = 2M

4、执行修复

myisamchk -c -r /data/sjk/v9_news

 耐心等待。

5、重新启动mysql

 

posted @ 2020-12-22 23:03  MRtanchen  阅读(292)  评论(0编辑  收藏  举报