连接MySQL数据库提示:1130-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、刷新fl
·
错误分析:
当使用工具连接远程MySQL数据库时提示:1130-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、再次测试成功连接
更多推荐




所有评论(0)