解决错误Table \'%s’ is marked as crashed and last (automatic) repair failed ... [复制链接]

moqu8 2018-1-9

4 0

错误文本:
Discuz! Database Error
The database has encountered a problem. Need Help?
Error messages:
  • [Type] 查询语句错误
  • [144] Table './s536626db0/common_syscache' is marked as crashed and last (automatic?) repair failed
  • [Query] SELECT * FROM common_syscache WHERE cname IN ('ipbanned')
Program messages:
  • [Line: 0026]admin.php(discuz_core->init)
  • [Line: 0068]source/class/class_core.php(discuz_core->_init_session)
  • [Line: 0380]source/class/class_core.php(ipbanned)
  • [Line: 2153]source/function/function_core.php(loadcache)
  • [Line: 0681]source/function/function_core.php(cachedata)
  • [Line: 0739]source/function/function_core.php(DB::query)

错误编号:144
问题分析:数据表损坏造成的。
如果出现上述错误,解决方案: (推荐第三条) 
1、通过论坛的 tool 工具进行修复(推荐)
下载地址和使用说明见:

Tools3.0_GBK.zip    Tools3.0_UTF8.zip

2、myisamchk 修复
myisamchk 命令的格式如下:
1)myisamchk –recover tbl_name
2)myisamchk –recover /path/tbl_name
这种方法要指定数据表在磁盘上的位置。
3、使用 phpMyAdmin 修复数据的方法(推荐)
进入论坛数据库,然后选择要修复的表,在页脚下拉框选择“修复”即可。
注意:如果需要修复数据库,修复前一定要做好备份。

最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom
新站优化中!部分功能尚未完善,敬请谅解!
支持中心