远程连接ip改变错误问题ERROR 1130: Host '192.111.72.53' is not allowed to connect to this MySQL ERROR 1062
2018-03-15 14:03
706 查看
第一次把项目放在linux服务器上,提交数据的时候就报了这个样的错误,看到结果有点蒙,因为报的ip完全跟自己的ip没有关系。仔细检查了配置文件,发现 用户名和密码都没有问题。
查了半天资料发现 是因为mysql远程连接没有开。
1.进入数据库mysql -u root -p
继续下面的操作就可以了flush privileges;
查了半天资料发现 是因为mysql远程连接没有开。
1.进入数据库mysql -u root -p
use mysql; select host, user from user; update user set host='%' where user='root';更新之后会发现报错
:ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'
不用管继续下面的操作就可以了flush privileges;
相关文章推荐
- 远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误
- 错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server 是无法给远程连接的用
- Mysql 远程连接错误:1130-host IP is not allowed to connect to this MySql server
- Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- 怎么解决mysql不允许远程连接的错误1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server“
- mysql远程连接错误1130-host ... is not allowed to connect to this MySql server
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- mysql不允许其他ip连接 MySql - SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- mysql不支持远程连接的解决办法(#报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用lo
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- MySQL : 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法