数据库查询失败。从数据库收到的错误是#144:

时间:2013-03-14 07:10:22

标签: mysql repair

Database query failed. Error received from database was #144: Table 'dbname.mantis_bug_file_table' is marked as crashed and last (automatic?) repair failed for the query: SELECT bug_id, COUNT(bug_id) AS attachments
FROM mantis_bug_file_table
GROUP BY bug_id.

如何避免上述问题。很多次我在修复表后得到这个错误。如果我在加载页面后修复了表格,那就说“#2013 - 在查询期间丢失了与MySQL服务器的连接”。

感谢。

1 个答案:

答案 0 :(得分:1)

首先停止MySQL进程。转到数据文件夹并尝试运行myisamchk -r <table_name>。如果不起作用,请尝试使用myisamchk -r -v -f <table_name>.