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.