码迷,mamicode.com
首页 > 其他好文 > 详细

Table '.\gts\eventdata#P#p0' is marked as crashed and last (automatic?) repair failed

时间:2016-09-19 22:23:05      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:

修复数据表操

MYSQL数据表出现问题,提示:
Error: Table ‘./db_name/table_name‘ is marked as crashed and last (automatic?) repair failed

修复数据表操作

1、service mysqld stop;
2、cd /var/lib/mysql/db_name/
3、myisamchk -r tablename.MYI (修复单张数据表)
myisamchk -r *.MYI (修复所有数据表)

注意:操作第三步前一定要把mysql服务停掉。

4. mysqlcheck -o -r 数据库名称 -p

Table '.\gts\eventdata#P#p0' is marked as crashed and last (automatic?) repair failed

标签:

原文地址:http://www.cnblogs.com/duwanjiang/p/5886743.html

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