Solve the problem of mysql 1045 error in discuz UCenter background access

Source: Internet
Author: User

Mysql 1045 error occurs when you access the discuz UCenter background:

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

Errno: 1045 this is an incorrect database password error message. It should be because the ucenter configuration file has not been modified while changing the database password.

Solution:

Modify the configuration file uc_server/data/config. inc. php.

By the way, you must change the password of the discuz database in two ways:

1. Modify the configuration file in the config directory.

The code is as follows: Copy code

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


2. Modify the configuration file of uc_server/data/config. inc. php.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.