Table '.\mysql\user' is marked as crashed and should be repaired 解决方法

Table '.\mysql\user' is marked as crashed and should be repaired

解决方法如下:

找到mysql的安装目录的bin/myisamchk工具,在命令行中输入:

myisamchk -c -r ../data/mysql/user.MYI (注意修改表存放路径)

然后myisamchk 工具会帮助你恢复数据表的索引。重新启动mysql,问题解决。

你可能感兴趣的:(Table '.\mysql\user' is marked as crashed and should be repaired 解决方法)