远程连接Mysql,错误代码是1130的解决办法
2017-12-02 10:13
597 查看
远程连接Mysql服务器的数据库出现错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this
登录服务器mysql
mysql -u root -p
输入密码进入mysql命令界面
1.use mysql;
2.update user set host = '%' where user ='root';
3.update
user set host = 'localhost' where user ='root' and
host = '127.0.0.1';
4.flush privileges;
有的在执行第二步时可能会提示已经存在,忽略就行,继续执行第三步,然后输入
quit
再重启一下mysql
service mysql restart
就好了
登录服务器mysql
mysql -u root -p
输入密码进入mysql命令界面
1.use mysql;
2.update user set host = '%' where user ='root';
3.update
user set host = 'localhost' where user ='root' and
host = '127.0.0.1';
4.flush privileges;
有的在执行第二步时可能会提示已经存在,忽略就行,继续执行第三步,然后输入
quit
再重启一下mysql
service mysql restart
就好了
相关文章推荐
- 连接MySql的时候报1130的错误解决办法以及远程登陆方法.
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 远程连接mysql错误代码1130的解决方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130 远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to co
- 解决远程连接mysql错误1130代码的方法
- wdcp 远程连接mysql 出现1130错误 解决办法
- 解决远程连接mysql错误1130代码的方法
- 远程连接mysql错误代码1130的解决方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- wdcp Navicat for mysql远程连接数据库详解(1130错误解决方法)
- 解决远程连接mysql错误1130
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- 无法远程连接MySql服务器解决方法(错误号:1130)
- MYSQL---远程连接mysql数据库提示:ERROR 1130的解决办法