mysqladmin:connect to server at 'localhost' failed
修改密码错误 mysqladmin -u root password 'newpassword'
#service mysqld stop
#mysqld_safe --skip-grant-tables &
#mysql -u root -p
password:直接回车
mysql>use mysql;
mysql>update user set password=password("guNNhtqhjUnfky6ahyVh") where user='root' and host='localhost';
mysql>flush privileges
mysql>quit
#service mysqld restart
这样密码修改好了。