禅道Mysql服务总是自动停止
mysql服务启动后,不到1min会自动停止掉,开启debug模式后网页版界面显示报错信息如下:
16:36:26 ERROR: SQLSTATE[HY000] [2002] 由于目标计算机积极拒绝,无法连接。
in framework\base\router.class.php on line 2915, last called by
framework\base\router.class.php on line 2823 through function
connectByPDO.
in D:\ZenTao\app\zentao\framework\base\router.class.php on line 2988 when visiting
Fatal error: Uncaught EndResponseException in
D:\ZenTao\app\zentao\framework\base\router.class.php:3419
Stack trace:
#0 D:\ZenTao\app\zentao\framework\helper.class.php(323):
EndResponseException::create('')
#1 D:\ZenTao\app\zentao\framework\base\router.class.php(3098):
helper::end()
#2 D:\ZenTao\app\zentao\framework\router.class.php(350):
baseRouter->saveError(256, 'ERROR: SQLSTATE...',
'D:\\ZenTao\\app\\z...', 2988)
#3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...',
'D:\\ZenTao\\app\\z...', 2988, Array)
#4 D:\ZenTao\app\zentao\framework\base\router.class.php(2988):
trigger_error('ERROR: SQLSTATE...', 256)
#5 D:\ZenTao\app\zentao\framework\base\router.class.php(2915):
baseRouter->triggerError('SQLSTATE[HY000]...',
'D:\\ZenTao\\app\\z...', 2823, true)
#6 D:\ZenTao\app\zentao\framework\base\router.class.php(2823):
baseRouter->connectByPDO(Object(stdClass), 'MASTER')
#7 D:\ZenTao\app\zentao\framework\base\router.class.php(424):
baseRouter->connectDB()
#8 D:\ZenTao\app\zentao\framework\base\router.class.php( in
D:\ZenTao\app\zentao\framework\base\router.class.php on line
3419
16:36:26 Uncaught EndResponseException in D:\ZenTao\app\zentao\framework\base\router.class.php:3419
Stack trace:
#0 D:\ZenTao\app\zentao\framework\helper.class.php(323): EndResponseException::create('')
#1 D:\ZenTao\app\zentao\framework\base\router.class.php(3098): helper::end()
#2 D:\ZenTao\app\zentao\framework\router.class.php(350):
baseRouter->saveError(256, 'ERROR: SQLSTATE...',
'D:\\ZenTao\\app\\z...', 2988)
#3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', 'D:\\ZenTao\\app\\z...', 2988, Array)
#4 D:\ZenTao\app\zentao\framework\base\router.class.php(2988): trigger_error('ERROR: SQLSTATE...', 256)
#5 D:\ZenTao\app\zentao\framework\base\router.class.php(2915):
baseRouter->triggerError('SQLSTATE[HY000]...',
'D:\\ZenTao\\app\\z...', 2823, true)
#6 D:\ZenTao\app\zentao\framework\base\router.class.php(2823): baseRouter->connectByPDO(Object(stdClass), 'MASTER')
#7 D:\ZenTao\app\zentao\framework\base\router.class.php(424): baseRouter->connectDB()
#8 D:\ZenTao\app\zentao\framework\base\router.class.php( in D:\ZenTao\app\zentao\framework\base\router.class.php on line 3419 when visiting
Fatal error: Uncaught EndResponseException in
D:\ZenTao\app\zentao\framework\base\router.class.php:3419
Stack trace:
#0 D:\ZenTao\app\zentao\framework\helper.class.php(323):
EndResponseException::create('')
#1 D:\ZenTao\app\zentao\framework\base\router.class.php(3098):
helper::end()
#2 D:\ZenTao\app\zentao\framework\router.class.php(350):
baseRouter->saveError(1, 'Uncaught EndRes...',
'D:\\ZenTao\\app\\z...', 3419)
#3 D:\ZenTao\app\zentao\framework\base\router.class.php(2954):
router->saveError(1, 'Uncaught EndRes...', 'D:\\ZenTao\\app\\z...',
3419)
#4 [internal function]: baseRouter->shutdown()
#5 {main}
thrown in
D:\ZenTao\app\zentao\framework\base\router.class.php on line
3419
哪位同学有遇到过?我该向哪个方向解决
D:\ZenTao\app\zentao\tmp\backup 目录下的备份文件有吗?
另外可以看看这个文档:
https://blog.csdn.net/zjy660358/article/details/122363679
https://blog.51cto.com/legehappy/2119514