navicat 登陸服務器報錯1045-Access denied for user 'root'

原因:權限的問題

解決辦法

grant all privileges on *.* to 'root'@'ip地址' identified by 'mysql 密碼';

如果是本地登錄:

grant all privileges on *.* to 'root'@'localhost' identified by 'mysql 密碼';

開放權限給所有ip設定root登陸:

grant all privileges on *.* to 'root'@'%' identified by 'mysql 密碼';

最後:

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