解决第三方软件|解决discuz UCenter后台访问出现mysql 1045错误问题

更新时间:2019-05-09    来源:Access    手机版     字体:

【www.bbyears.com--Access】

刚刚在访问discuz UCenter 后台时出现 mysql 1045错误:

UCenter info: Can not connect to MySQL server
Error:Access denied for user "root"@"localhost" (using password: YES)

Errno:1045这是数据库密码不正确的错误提示。应该是自己在更换数据库密码的过程中,没有修改ucenter配置文件造成的。

解决方法:

修改:uc_server/data/config.inc.php 配置文件即可。

这里顺便提醒下,在更改discuz数据库密码过程中需要修改2个地方:

1、修改 config 目录中的配置文件

 代码如下

-rwxrwxrwx 1 root root 7944 Sep  6  2013 config_global_default.php
-rw-r--r-- 1 root root 4632 Nov 30 23:46 config_global.php
-rwxrwxrwx 1 root root 1512 Sep  5  2013 config_ucenter_default.php
-rwxrwxrwx 1 root root  543 Mar 10 20:20 config_ucenter.php


2、修改 uc_server/data/config.inc.php 的配置文件。

本文来源:http://www.bbyears.com/shujuku/50057.html