禅道安装
597234开源15.3版本升级到20.0版本后,页面提示mysql登录问题已解决
开源15.3版本升级到20.0版本后,页面提示mysql登录问题已解决
悬赏5积分
提问者礼貌的酱牛肉答案数1阅读数1038发表时间2024-05-10 17:01:44
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' in /apps/zentao/lib/dbh/dbh.class.php:76 Stack trace: #0 /apps/zentao/lib/dbh/dbh.class.php(76): PDO->__construct('mysql:host=loca...', 'root', 'zhihan') #1 /apps/zentao/framework/base/router.class.php(3041): dbh->__construct(Object(stdClass), true, 'MASTER') #2 /apps/zentao/framework/base/router.class.php(2981): baseRouter->connectByPDO(Object(stdClass), 'MASTER') #3 /apps/zentao/framework/base/router.class.php(463): baseRouter->connectDB() #4 /apps/zentao/framework/base/router.class.php(513): baseRouter->__construct('pms', '/apps/zentao', 'running') #5 /apps/zentao/www/index.php(33): baseRouter::createApp('pms', '/apps/zentao', 'router') #6 {main} thrown in /apps/zentao/lib/dbh/dbh.class.php on line 76
16:49:48 Uncaught PDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' in /apps/zentao/lib/dbh/dbh.class.php:76
Stack trace:
#0 /apps/zentao/lib/dbh/dbh.class.php(76): PDO->__construct('mysql:host=loca...', 'root', 'zhihan')
#1 /apps/zentao/framework/base/router.class.php(3041): dbh->__construct(Object(stdClass), true, 'MASTER')
#2 /apps/zentao/framework/base/router.class.php(2981): baseRouter->connectByPDO(Object(stdClass), 'MASTER')
#3 /apps/zentao/framework/base/router.class.php(463): baseRouter->connectDB()
#4 /apps/zentao/framework/base/router.class.php(513): baseRouter->__construct('pms', '/apps/zentao', 'running')
#5 /apps/zentao/www/index.php(33): baseRouter::createApp('pms', '/apps/zentao', 'router')
#6 {main}
thrown in /apps/zentao/lib/dbh/dbh.class.php on line 76 when visiting
Fatal error: Uncaught EndResponseException in /apps/zentao/framework/base/router.class.php:3636 Stack trace: #0 /apps/zentao/framework/base/helper.class.php(1086): EndResponseException::create('') #1 /apps/zentao/framework/base/router.class.php(3285): baseHelper::end() #2 /apps/zentao/framework/router.class.php(380): baseRouter->saveError(1, 'Uncaught PDOExc...', '/apps/zentao/li...', 76) #3 /apps/zentao/framework/base/router.class.php(3131): router->saveError(1, 'Uncaught PDOExc...', '/apps/zentao/li...', 76) #4 [internal function]: baseRouter->shutdown() #5 {main} thrown in /apps/zentao/framework/base/router.class.php on line 3636
16:49:48 Uncaught PDOException: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' in /apps/zentao/lib/dbh/dbh.class.php:76
Stack trace:
#0 /apps/zentao/lib/dbh/dbh.class.php(76): PDO->__construct('mysql:host=loca...', 'root', 'zhihan')
#1 /apps/zentao/framework/base/router.class.php(3041): dbh->__construct(Object(stdClass), true, 'MASTER')
#2 /apps/zentao/framework/base/router.class.php(2981): baseRouter->connectByPDO(Object(stdClass), 'MASTER')
#3 /apps/zentao/framework/base/router.class.php(463): baseRouter->connectDB()
#4 /apps/zentao/framework/base/router.class.php(513): baseRouter->__construct('pms', '/apps/zentao', 'running')
#5 /apps/zentao/www/index.php(33): baseRouter::createApp('pms', '/apps/zentao', 'router')
#6 {main}
thrown in /apps/zentao/lib/dbh/dbh.class.php on line 76 when visiting
Fatal error: Uncaught EndResponseException in /apps/zentao/framework/base/router.class.php:3636 Stack trace: #0 /apps/zentao/framework/base/helper.class.php(1086): EndResponseException::create('') #1 /apps/zentao/framework/base/router.class.php(3285): baseHelper::end() #2 /apps/zentao/framework/router.class.php(380): baseRouter->saveError(1, 'Uncaught PDOExc...', '/apps/zentao/li...', 76) #3 /apps/zentao/framework/base/router.class.php(3131): router->saveError(1, 'Uncaught PDOExc...', '/apps/zentao/li...', 76) #4 [internal function]: baseRouter->shutdown() #5 {main} thrown in /apps/zentao/framework/base/router.class.php on line 3636
禅道版本:禅道开源版 20.0
安装包类型:Linux安装包
操作系统:CentOS
客户端浏览器:Chrome
答案列表
禅道-阿龙2024-05-10 17:13:20 您好,根据报错信息是数据库连接异常,可以登录禅道服务器,根据禅道代码目录 zetnao/config/my.php 文件中的内容看下是否可以正常登录数据库; 报错信息显示是使用的docker安装的禅道,15.3版本的docker部署方式不能直接使用替换镜像的方式升级版本,需要下载新版本源码包,覆盖持久化到宿主机的代码目录进行升级; 如果需要替换新版本的镜像,可以参考手册:https://www.zentao.net/book/zentaopms/1059.html |
联系我们
联系人
刘璐/高级客户经理
电话(微信)
18562550650
QQ号码
2845263372
联系邮箱
liulu@chandao.com

其他相关问答
提问者: penline 于 2015-05-187699次浏览,1个答案
提问者: xuemei19877 于 2016-02-252330次浏览,1个答案
提问者: lfw 于 2012-11-012436次浏览,1个答案
提问者: duohunqi 于 2011-10-243601次浏览,3个答案
提问者: free111 于 2017-10-243757次浏览,2个答案




精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


