上手MySQL之解決問題:not allowed to connect to this MySQL server
1.在用Navicat配置遠端連線Mysql資料庫時遇到如下報錯資訊。
2.在安裝Mysql資料庫的主機上登入root使用者:
mysql -u root -p
3.依次執行如下命令:
use mysql;
select host from user where user='root';
4.結果發現目標伺服器不在mysql的“白名單”中,將相應IP加白後訪問正常,語句如下:
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’****IP****′ IDENTIFIED BY ‘******’ WITH GRANT OPTION;
5.加白後navicat可正常連線mysql資料庫。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69994536/viewspace-2757139/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Host 'xxx' is not allowed to connect to this MySQL server 解決方法MySqlServer
- Host 'localhost' is not allowed to connect to this MySQL serverlocalhostMySqlServer
- “Host ‘xxxx‘ is not allowed to connect to this MySQL server“MySqlServer
- MySQL-1130-host ... is not allowed to connect to this MySql serverMySqlServer
- 解決MySql報錯:1130 - Host ‘xxx‘ is not allowed to connect to this MySQL server的方法MySqlServer
- Host 'xxx' is not allowed to connect to this MySQL server.MySqlServer
- Navicat連線centos裡mysql報錯Host is not allowed to connect to this MySQL serverCentOSMySqlServer
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- Navicat 連線 MySQL 失敗:2002-can‘t connect to server on localhost(10061)問題解決MySqlServerlocalhost
- 虛擬機器NAT模式下連線mysql報錯:Host '192.168.30.1' is not allowed to connect to this MySQL server虛擬機模式MySqlServer
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- navicat無法連線遠端的mysql--Host ‘xx.xx.xx.xx‘ is not allowed to connect to this MySQL server“MySqlServer
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- 關於對連線資料庫時出現1130-host “**” is not allowed to connect to this MySql/mariadb server 的錯誤解決方法資料庫MySqlServer
- 連線mysql時提示is not allowed to connect不允許連線MySql
- MySQL 中文 like 問題解決MySql
- mysql大小寫問題解決MySql
- 問題MySQL server has gone awayMySqlServerGo
- MySql中文亂碼問題解決MySql
- centos7 下解決mysql-server找不到安裝包問題CentOSMySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- 解決bash: mysql: command not found的問題MySql
- Linux安裝mysql出現ERROR! The server quit without updating PID file問題解決LinuxMySqlErrorServerUI
- Mysql使用kill命令解決死鎖問題MySql
- laravel 解決 mysql only_full_group_by 問題LaravelMySql
- 連線mysql報錯lost connect to sever during query解決MySql
- win10 mysql閃退怎麼解決_解決win10 mysql閃退問題Win10MySql
- 解決Ubuntu下MySQL遠端登入問題UbuntuMySql
- mysql主從複製配置與問題解決MySql
- mysql登入遇到ERROR 1045問題解決方法MySqlError
- mysql使用source 命令亂碼問題解決方法MySql
- MySQL是怎麼解決幻讀問題的?MySql
- mysql執行truncate drop 時卡死問題解決MySql
- 解決django 2.2與mysql相容性問題DjangoMySql
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- max_allowed_packet引起MySQL遷移丟失資料的問題MySql
- 部署專案遇到的mysql問題以及解決方法MySql