这篇文章主要讲解了“怎么解决MySQL中的[ERROR]XX is marked as crashed and should be repaired问题”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么解决MySQL中的[ERROR]XX is marked as crashed and should be repaired问题”吧!
错误日志:
2016-05-30 10:28:03 23241 [ERROR] /usr/sbin/mysqld: Table './mysql/event' is marked as crashed and should be repaired
mysql库中的event表有问题需要修复
可以使用myisamchk 工具会帮助你恢复数据表的索引
[root@mysql mysql]# find / -name myisamchk
/usr/bin/myisamchk
[root@mysql mysql]# /usr/bin/myisamchk -c -r /data/DB/mysql/mysql/event.MYI
- recovering (with sort) MyISAM-table '/data/DB/mysql/mysql/event.MYI'
Data records: 8
- Fixing index 1
重启数据库解决
感谢各位的阅读,以上就是“怎么解决MySQL中的[ERROR]XX is marked as crashed and should be repaired问题”的内容了,经过本文的学习后,相信大家对怎么解决MySQL中的[ERROR]XX is marked as crashed and should be repaired问题这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!