首页 > CMS建站 > Discuz > 正文

解决discuz UCenter后台访问出现mysql 1045错误问题

2020-10-12 19:56:00
字体:
来源:转载
供稿:网友

今天一朋友说在使用discuz UCenter时登录后台管理中心出现象mysql 1045错误了,根据经验这个错误是密码与用户名不正确导致的,后来发现一站长写的文章也是这个道理下面我分享一下.

刚刚在访问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配置文件造成的.//开源软件:Cuoxin.com

解决方法:

修改: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 的配置文件.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表