mysql远程连接报1130错误
作者:互联网
错误: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;
解决方法:
启动cmd mysql 注意环境变量
mysql -u root -p
mysql>use mysql;
mysql>select 'host' from user where user='root';
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
mysql>select 'host' from user where user='root';
标签:1.3,1130,192.168,user,mysql,root,远程 来源: https://blog.csdn.net/KefanWon/article/details/117475652