PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > discuz教程 > 正文

    discuz UCenter后台访问出现mysql 1045错误的解决方法

    作者:w634381967来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:刚刚在访问discuz UCenter 后台时出现 mysql 1045错误:UCenter info: Can not connect to MySQL serverError:Access denied ...
    刚刚在访问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 的配置文件。
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-106-921-1.html
    相关热词搜索: discuz教程