表 './mysql/proc' 被标记为崩溃,应该修复
当我对 mysql DB 执行任何过程创建或更新操作时,我收到以下错误
When i perform any procedure creation or update operation to mysql DB, i am getting the below error
表 './mysql/proc' 被标记为崩溃,应该修复
Table './mysql/proc' is marked as crashed and should be repaired
尝试使用以下命令运行 mysql isam recover -myisamchk -q -r/var/lib/mysql/mysql/proc
Tried to run mysql isam recover using below command - myisamchk -q -r /var/lib/mysql/mysql/proc
但问题仍然存在.
提前致谢.
推荐答案
试试这些:
mysqlcheck --auto-repair -A -u username -ppassword
MySQL 终端内部
repair table mysql.proc;
参考:https://dev.mysql.com/doc/refman/5.1/en/repair-table.html修改my.cnf
Reference: https://dev.mysql.com/doc/refman/5.1/en/repair-table.html Modify the my.cnf
[mysqld]
character-sets-dir=/usr/share/mysql/charsets
参考:http://dev.mysql.com/doc/refman/5.0/en/repair-table.html
相关文章