当前位置:Gxlcms > 数据库问题 > MySQL 1130错误,无法远程连接

MySQL 1130错误,无法远程连接

时间:2021-07-01 10:21:17 帮助过:6人阅读

错误:ERROR 1130: Host ‘192.168.1.3‘ is not allowed to connect to thisMySQL serve

错误1130:主机192.168.1.3”不允许连接到thismysql服务

原因:被连接的数据不允许使用 192.168.1.3访问,只允许是用 localhost;

解决办法:

帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改"mysql" 数据库里的 "user" 表里的 "host"项,从"localhost"改称"%"

update user set host = ‘%‘ where user =‘root‘;

flush privileges;

MySQL 1130错误,无法远程连接

标签:解决办法   roo   服务   mysql   update   connect   错误   oca   更改   

人气教程排行