网站莫名其妙出错 MySQL server error report:Array

2016-07-07 15:14 来源:www.chinab4c.com 作者:ecshop专家

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT a.article_id, a.title, ac.cat_name, a.add_time, a.file_url, a.open_type, ac.cat_id, ac.cat_name FROM `shanzhaimi`.`ecs_article` AS a, `shanzhaimi`.`ecs_article_cat` AS ac WHERE a.is_open = 1 AND a.cat_id = ac.cat_id AND ac.cat_type = 1 ORDER BY a.article_type DESC, a.add_time DESC LIMIT 4 ) [2] => Array ( [error] => Incorrect key file for table '/tmp/#sql_4921_0.MYI'; try to repair it ) [3] => Array ( [errno] => 126 ) )


网站那里都没有动突然出现这样的错误,MYSQL 运行正常。麻烦高手解答一下上面这些是什么意思?

回答:
Incorrect key file for table '/tmp/#sql_4921_0.MYI'; try to repair it

把你的数据库修复下就好了,

怎么修复 大哥?

不是很晓得。 2012年法网

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT c.cat_id, c.cat_name, c.sort_order, a.article_id, a.title, a.file_url, a.open_type FROM `shanzhaimi`.`ecs_article` AS a LEFT JOIN `shanzhaimi`.`ecs_article_cat` AS c ON a.cat_id = c.cat_id WHERE c.cat_type = 5 AND a.is_open = 1 ORDER BY c.sort_order ASC, a.article_id ) [2] => Array ( [error] => Table './shanzhaimi/ecs_article' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) )

现在出现这样的问题 怎么办?

来看看了啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

数据库中某条数据重复?

可修复

phpmyadmin里面不是有修复表的地方吗