ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

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>
搞定!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章