如图,我已经把apache,mysql,XXD已经安装好了,也启用了apache验证
按下访问禅道的时候,也会弹出apache的登陆弹窗,然后进入到这个页面:
我按下 开源版 的按钮,出现的是一个空白页面,我把php的Debug打开后,出现了如下的报错:
13:07:10 ERROR: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in framework\base\router.class.php on line 2915, last called by framework\base\router.class.php on line 2823 through function connectByPDO.
in C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php on line 2988 when visiting
Fatal error: Uncaught EndResponseException in C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php:3419 Stack trace: #0 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\helper.class.php(323): EndResponseException::create('') #1 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(3098): helper::end() #2 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\router.class.php(350): baseRouter->saveError(256, 'ERROR: SQLSTATE...', 'C:\\Tools\\instal...', 2988) #3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', 'C:\\Tools\\instal...', 2988, Array) #4 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2988): trigger_error('ERROR: SQLSTATE...', 256) #5 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2915): baseRouter->triggerError('SQLSTATE[HY000]...', 'C:\\Tools\\instal...', 2823, true) #6 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2823): baseRouter->conn in
C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php on line
3419
13:07:10 Uncaught EndResponseException in C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php:3419
Stack trace:
#0 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\helper.class.php(323): EndResponseException::create('')
#1 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(3098): helper::end()
#2 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\router.class.php(350): baseRouter->saveError(256, 'ERROR: SQLSTATE...', 'C:\\Tools\\instal...', 2988)
#3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', 'C:\\Tools\\instal...', 2988, Array)
#4 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2988): trigger_error('ERROR: SQLSTATE...', 256)
#5 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2915): baseRouter->triggerError('SQLSTATE[HY000]...', 'C:\\Tools\\instal...', 2823, true)
#6 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2823): baseRouter->conn in C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php on line 3419 when visiting
Fatal error: Uncaught EndResponseException in C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php:3419 Stack trace: #0 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\helper.class.php(323): EndResponseException::create('') #1 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(3098): helper::end() #2 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\router.class.php(350): baseRouter->saveError(1, 'Uncaught EndRes...', 'C:\\Tools\\instal...', 3419) #3 C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php(2954): router->saveError(1, 'Uncaught EndRes...', 'C:\\Tools\\instal...', 3419) #4 [internal function]: baseRouter->shutdown() #5 {main} thrown in
C:\Tools\installation\ZenTao\ZenTao\app\zentao\framework\base\router.class.php on line
3419
请问要如何才能排除这个问题呢?谢谢
环境:
禅道开源版18.8
Windows 10 家庭版
获取技术支持
上面的图错了,应该是这个:
1, apache 的安全认证关闭
2, 是否有修改 mysql 密码? 如果有修改 ,调整 zentao/config/my.php 文件的配置
3, 从报错信息来看 是 数据库无法连接, 看看数据库有错误信息吗?