文档
3796

8.2.2升级到8.2.4后,后台备份,只备份sql.php数据,没有file.zip.php数据已解决 悬赏5积分

提问者Jinwang 答案数1 阅读数3310 发表时间2016-07-19 17:12:26

禅道版本:8.2.4

安装包类型:源码包

操作系统:Other

客户端浏览器:Chrome

设置备注
内容
答案列表
2016/07/19 最佳答案
zentao/config/my.php 中debug的值改成true  ,后台-备份 点击备份按钮, 看日志文件(zentao/tmp/log/php开头的今天的文件)有什么报错。
🦉
2016/07/20
<?php
die();
?>

14:39:15 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting user-login

14:39:37 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting bug-create-3-0-moduleID=0

14:39:40 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting admin

14:39:43 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting backup

14:39:45 Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repaired' in lib\zdb\zdb.class.php:202
Stack trace:
#0 lib\zdb\zdb.class.php(202): PDO->query('SHOW CREATE tab...')
#1 lib\zdb\zdb.class.php(94): zdb->getSchemaSQL('zt_cron', 'table')
#2 module\backup\model.php(24): zdb->dump('D:\xampp\zentao...')
#3 module\backup\control.php(82): backupModel->backSQL('D:\xampp\zentao...')
#4 [internal function]: backup->backup('yes')
#5 framework\base\router.class.php(1467): call_user_func_array(Array, Array)
#6 www\index.php(68): baseRouter->loadModule()
#7 {main}
thrown in lib\zdb\zdb.class.php on line 202 when visiting backup-backup-yes
2016/07/20
服务器断电导致数据库受损,登录数据库执行sql:REPAIR TABLE `zt_cron`;
🦉
2016/07/20
已解决,谢谢!
联系我们
联系人
魏中显/高级客户经理
电话(微信)
18561939726
QQ号码
1746749398
联系邮箱
weizhongxian@chandao.com
返回顶部
魏中显
高级客户经理
18561939726
1746749398
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。