ERROR1045(28000):Accessdeniedforuser'root'@'localhost'(usingpassword:NO)
于是重改密码!
#/etc/init.d/mysqlstop
#mysqld_safe--user=mysql--skip-grant-tables--skip-networking&
#mysql-urootmysql
mysql>UPDATEuserSETPassword=PASSWORD('newpassword')whereUSER='root';
mysql>FLUSHPRIVILEGES;
mysql>quit
#/etc/init.d/mysqldrestart
#mysql-uroot-p
Enterpassword:
mysql>
搞定!