解決遠端連線mysql錯誤1130

2021-06-22 21:24:54 字數 760 閱讀 7677

mysql

遠端連線mysql伺服器的資料庫,錯誤**是1130,error 1130: host ***.***.***.***  is not allowed to connect to this mysql server  

猜想是無法給遠端連線的使用者許可權問題。 

這樣子操作mysql庫,即可解決。 

在本機登入mysql後,更改 「mysql」 資料庫裡的 「user」 表裡的 「host」 項,從」localhost」改稱'%'即可 

mysql -u root -p  

mysql;use mysql;  

mysql;select 'host' from user where user='root';  

mysql;update user set host = '%' where user ='root';  

mysql;flush privileges;  

mysql;select 'host'   from user where user='root'; 

第一句:以許可權使用者root登入  

第二句:選擇mysql庫  

第三句:檢視mysql庫中的user表的host值(即可進行連線訪問的主機/ip名稱)  

第四句:修改host值(以萬用字元%的內容增加主機/ip位址),當然也可以直接增加ip位址  

第五句:重新整理mysql的系統許可權相關表  

第六句:再重新檢視user表時,有修改。。  

重起mysql服務即可完成。 

解決解決遠端連線mysql錯誤1130

遠端連線 mysql 伺服器的資料庫,錯誤 是 1130 error1130 host is not allowed to connect to this mysql server 猜想是無法給遠端連線的使用者許可權問題。這樣子操作 mysql 庫,即可解決。在本機登入 mysql 後,更改 mys...

解決遠端連線mysql錯誤1130

遠端連線mysql伺服器的資料庫,錯誤 是1130,error 1130 host is not allowed to connect to this mysql server 猜想是無法給遠端連線的使用者許可權問題。這樣子操作mysql庫,即可解決。在本機登入mysql後,更改 mysql 資料庫...

解決遠端連線mysql錯誤1130

遠端連線mysql伺服器的資料庫,錯誤 是1130,error 1130 host is not allowed to connect to this mysql server 猜想是無法給遠端連線的使用者許可權問題。這樣子操作mysql庫,即可解決。在本機登入mysql後,更改 mysql 資料庫...