ecs_stats' is marked as crashed and should be repaired解决办法

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

我的网站刚才出现这样子的问题,找了好久才找到答案。没办法,我只是个菜鸟,现在跟大家分享一下!

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT COUNT(*) FROM `a0116212122`.`ecs_stats` WHERE access_time > 1283673600 ) [2] => Array ( [error] => Table '.\a0116212122\ecs_stats' is marked as crashed and should be repaired ) [3] => Array ( [errno] => 145 ) )


解决办法:

在后台,sql查询中执行一下
REPAIR TABLE `ecs_stats`

回答:
这个是数据库被损坏了。修复下就可以