mysql啓動提示 access denied for user root@localhost(using password:YES)

問題:遇到mysql啓動提示 access denied for user root@localhost(using password:YES) 

1、檢查密碼有無錯誤,如果無就是權限問題。

2、打開SQL的圖形工具,輸入以下命令行

grant all privileges on *.* to 'root'@'localhost' identified by '你的密碼' with grant option;
flush privileges;

3、在本地環境運行沒有問題,如有異常,請留下評論,共同討論

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章