親測有效處理方法–Navicat連接配接mysql資料庫報錯Error 1045(28000)
Navicat連接配接mysql資料庫報錯:
Error 1045(28000):Acess denied for user ‘root’@‘localhost’(using password=yes)
處理方法:
- 關閉資料庫所在機器防火牆
-
配置mysql:
授權為可以使用賬号root用任意主機連接配接伺服器
grant all privileges on *.* to *root*@*%* identified by 'yourpassword';
flush privileges;
解讀:
grant all privileges代表授權所有權限
.代表伺服器中的所有資料庫
root代表所授權的伺服器管理賬号
%代表任意ip
yourpassword代表對應伺服器賬号的密碼。