mysql出現這個錯誤。
解決辦法: 重新設置root用戶密碼
# service mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# service mysql restart
# mysql -uroot -p
Enter password: <輸入新設的密碼newpassword>
mysql>
就可以使用了