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服务器的连接”。
感谢。
答案 0 :(得分:1)
首先停止MySQL进程。转到数据文件夹并尝试运行myisamchk -r <table_name>
。如果不起作用,请尝试使用myisamchk -r -v -f <table_name>.