mysql数据库表检查和修复

技术探讨  2020-03-17 07:06   7309 mysql 修复 检测

当出现General error: 1194 Table 'xxxx' is marked as crashed and should be repaired这样的错误时,对mysql数据库表的修复和检测。

1、进入mysql命令行

mysql -uroot -p

输入密码,进入命令行页面

image.png

2、切换到指定数据库

use xxx;

3、检测指定表

check table xxx;

检测结果如果是 status OK,则数据表正常;

image.png

检测到数据表异常,则修复数据表;

repair table xxx;

修复完成后,重新检测,状态OK修复完毕。

注:转载请注明出处为http://www.sandbean.com/article/122.html。

沙豆网 站长

追求卓越,奋斗不息!

167
文章
8382
点赞

更多文章