xiaona
2017-02-08 16:58:29
使用的版本是8.4.1
今天发现无法在测试用例页面点击箭头添加新的用例,后来发现了报错:
16:51:42 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repaired
The sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1
in D:\xampp\zentao\lib\base\dao\dao.class.php on line 1318, last called by D:\xampp\zentao\lib\base\dao\dao.class.php on line 717 through function sqlError.
in D:\xampp\zentao\framework\base\router.class.php on line 1916 when visiting qa
最后一行会在进不同的页面时发生变化,如:
16:58:08 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repaired
The sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1
in D:\xampp\zentao\lib\base\dao\dao.class.php on line 1318, last called by D:\xampp\zentao\lib\base\dao\dao.class.php on line 717 through function sqlError.
in D:\xampp\zentao\framework\base\router.class.php on line 1916 when visiting testcase-edit-8
请问怎么处理?
谢谢
石洋洋
2017-02-08 17:55:58
数据库受损了,登录数据库执行sql: REPAIR TABLE `zt_cron`;