Navicat for MySQL 1130錯誤

來源:互聯網
上載者:User

用Navicat串連遠程MySQL,提示如下錯誤,我以為是自己的防火牆問題,但是關了,依然不行。

我認為這段英文,有點誤導,讓人感覺是自己這邊出了問題。

看解決方案吧

ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server

解決方案:

1。改表法。可能是你的帳號不允許從遠程登陸,只能在localhost。這個時候只要在localhost的那台電腦,登入mysql後,更改 "mysql" 資料庫裡的 "user" 表裡的 "host" 項,從"localhost"改稱"%"

mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>select host, user from user;

2. 授權法。例如,你想myuser使用mypassword從任何主機串連到mysql伺服器的話。

GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

如果你想允許使用者myuser從ip為192.168.1.3的主機串連到mysql伺服器,並使用mypassword作為密碼

GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

推薦閱讀:

Navicat for MySQL中添加外鍵方法

Navicat不支援遠端連線MySQL的解決方案

Navicat異地自動備份MySQL方法詳解

Navicat用戶端串連MySQL資料庫設定

使用Navicat管理遠程Linux伺服器上的MySQL資料庫

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.