上手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
- 解決mysql Navicat 出錯:1130-host . is not allowed to connect to this MySql server,MySqlServer
- mysql遠端連線 Host * is not allowed to connect to this MySQL serverMySqlServer
- 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問題記錄--Can't connect to MySQL server on localhost (10061)解決方法MySqlServerlocalhost
- “Host ‘xxxx‘ is not allowed to connect to this MySQL server“MySqlServer
- Host is not allowed to connect to this MySQL server 錯誤的處理方法MySqlServer
- SQL Error (1130): Host IP is not allowed to connect to this MySQL serverErrorMySqlServer
- 【linux】Can't connect to MySQL server on 'XXX' (13)問題解決方式LinuxMySqlServer
- Mysql mysql lost connection to server during query 問題解決方法MySqlServer
- MySQL server has gone away 問題的解決方法MySqlServerGo
- 解決Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "MySqlServer
- master and slave have equal MySQL server UUIDs問題解決ASTMySqlServerUI
- navicat無法連線遠端的mysql--Host ‘xx.xx.xx.xx‘ is not allowed to connect to this MySQL server“MySqlServer
- 虛擬機器NAT模式下連線mysql報錯:Host '192.168.30.1' is not allowed to connect to this MySQL server虛擬機模式MySqlServer
- 報錯:1130-host ... is not allowed to connect to this MySql server 開放mysql遠端連線 不使用localhostMySqlServerlocalhost
- MySQL 中文 like 問題解決MySql
- mysql大小寫問題解決MySql
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解決方法MySqlServer
- 解決Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:MySqlREM
- 連線mysql時提示is not allowed to connect不允許連線MySql
- MySql中文亂碼問題解決MySql
- 解決MySQL中文亂碼問題MySql
- MYSQL亂碼問題解決方法MySql
- Navicat 連線 MySQL 失敗:2002-can‘t connect to server on localhost(10061)問題解決MySqlServerlocalhost
- 關於對連線資料庫時出現1130-host “**” is not allowed to connect to this MySql/mariadb server 的錯誤解決方法資料庫MySqlServer
- 問題MySQL server has gone awayMySqlServerGo
- 解決Mysql匯入亂碼問題MySql
- 【mysql】配置MySQL,解決安裝過程中的問題MySql
- centos7 下解決mysql-server找不到安裝包問題CentOSMySqlServer
- MySQL連線提示Can't connect to local MySQL server through socketMySqlServer
- Can't connect to local MySQL server through socket '/tmp/mysql.sock'MySqlServer
- Mysql使用kill命令解決死鎖問題MySql
- 解決bash: mysql: command not found的問題MySql