网站老是出错 但刷新一下就好了 换个电脑又是出错

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

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `sqlxxxh123`.`xecs_stats` ( ip_address, visit_times, browser, system, language, area, referer_domain, referer_path, access_url, access_time) VALUES ('117.26.55.224', '6', 'Internet Explorer 6.0', 'Windows XP', 'zh-cn', '????省', '', '', '/index.php', '1337921685') ) [2] => Array ( [error] => Table '.\sqlxxxh123\xecs_stats' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) )就是显示这样的代码 请问如何解决
后台的起始页也是出错
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT COUNT(*) FROM `sqlxxxh123`.`xecs_stats` WHERE access_time > 1337846400 ) [2] => Array ( [error] => Table '.\sqlxxxh123\xecs_stats' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) )

回答:
数据库问题 2012年法网

这个是由于开启了访问统计造成的。你哪个表损坏了。有问题

表损坏了,这个修复一下

出现这个问题。往往是数据库造成的。