解决中 开源15.3版本升级到20.0版本后,页面提示mysql登录问题
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
禅道版本 20.0 Linux安装包
操作系统 CentOS
客户端浏览器 Chrome

提问者: 礼貌的酱牛肉 悬赏:5 日期: 2024-05-10 17:01:44 答案:1 点击:54

获取技术支持

QQ:1746749398电话:18561939726
设置备注
答案列表
2024/05/10

您好,根据报错信息是数据库连接异常,可以登录禅道服务器,根据禅道代码目录 zetnao/config/my.php 文件中的内容看下是否可以正常登录数据库;

报错信息显示是使用的docker安装的禅道,15.3版本的docker部署方式不能直接使用替换镜像的方式升级版本,需要下载新版本源码包,覆盖持久化到宿主机的代码目录进行升级;

如果需要替换新版本的镜像,可以参考手册:https://www.zentao.net/book/zentaopms/1059.html
另外如不能解决问题,可以添加获取技术支持QQ,协助您完成版本升级。

2024/05/10
谢谢,我尝试源码包,覆盖持久化到宿主机的代码目录进行升级;
2024/05/10
如有其他问题可以添加QQ,协助您进行处理。