使用远程工具连接提示**Host *** is not allowed to connect to this mysql server**拒绝连接错误
生活随笔
收集整理的這篇文章主要介紹了
使用远程工具连接提示**Host *** is not allowed to connect to this mysql server**拒绝连接错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這是由于Mysql配置了不支持遠程連接引起的。
解決辦法:
1、’在安裝Mysql數據庫的主機上登錄root用戶:
mysql -u root -p密碼2、依次執行如下命令:
use mysql;select host from user where user='root';3、將Host設置為通配符%
update user set host = '%' where user ='root';4、刷新
flush privileges;5、使用navicat 成功連接至mysql
總結
以上是生活随笔為你收集整理的使用远程工具连接提示**Host *** is not allowed to connect to this mysql server**拒绝连接错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在使用net start mysql命令
- 下一篇: window系统下安装mysql5.7教