XMPP and xmpp protocols
Mysql ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: YSE). This ERROR is very depressing. After careful analysis, knowing that this error is related to the password may be caused by an exception when configuring mysql. As a result, we do not have the correct password. After knowing the problem, we immediately thought of a solution, you can reset the password as follows:
1. Close mysql and set the password.
1 # sudo/etc/init. d/mysql stop 2 # sudo mysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking & 3 # sudo mysql-u root mysql 4 mysql> UPDATE user SET Password = PASSWORD ('pa ') where USER = 'root'; 5 mysql> flush privileges; 6 7 mysql> quit
2. Restart mysql and try to log on
1 # sudo/etc/init. d/mysql restart 2 # sudo mysql-uroot-p 3 Enter password: 4 # Enter the password. If the following code is displayed, the logon is normal. 5 mysql>