ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)
生活随笔
收集整理的這篇文章主要介紹了
ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Linux下mysql的安裝,真是不同Linux環境,各種問題。
步驟:
1、暫停mysql服務
service mysqld stop
2、設置mysql模式
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &?
3、clone session,新窗口
# mysql -u root mysql?mysql> UPDATE user SET Password=PASSWORD('新密碼') where USER='root';?
mysql> FLUSH PRIVILEGES;?
mysql> quit?
4、重啟mysql服務
service mysqld restart
Enter password: <輸入新設的密碼newpassword>?
mysql>?
總結
以上是生活随笔為你收集整理的ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mybatis源码阅读(一):Mybat
- 下一篇: 10.java 关键字与保留字