300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 使用远程工具连接提示**Host *** is not allowed to connect to this mysql server**拒绝连接错误

使用远程工具连接提示**Host *** is not allowed to connect to this mysql server**拒绝连接错误

时间:2020-07-27 19:25:26

相关推荐

使用远程工具连接提示**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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。