[root@centos-512mb-sgp1-01 ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'
@'localhost' (using password: YES)
[root@centos-512mb-sgp1-01 ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'
@'localhost' (using password: YES)
[root@centos-512mb-sgp1-01 ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'
@'localhost' (using password: NO)
[root@centos-512mb-sgp1-01 ~]#
實在不行重裝下mysql 吧 然後重新設置一下密碼