解决远程连接mysql错误1130
来源:互联网 发布:windows 10 iso bt 编辑:程序博客网 时间:2024/05/17 01:44
Mysql
远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server
猜想是无法给远程连接的用户权限问题。
这样子操作mysql库,即可解决。
在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'即可
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';
第一句:以权限用户root登录
第二句:选择mysql库
第三句:查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)
第四句:修改host值(以通配符%的内容增加主机/IP地址),当然也可以直接增加IP地址
第五句:刷新MySQL的系统权限相关表
第六句:再重新查看user表时,有修改。。
重起mysql服务即可完成。
远程连接Mysql服务器的数据库,错误代码是1130,ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server
猜想是无法给远程连接的用户权限问题。
这样子操作mysql库,即可解决。
在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'即可
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';
第一句:以权限用户root登录
第二句:选择mysql库
第三句:查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)
第四句:修改host值(以通配符%的内容增加主机/IP地址),当然也可以直接增加IP地址
第五句:刷新MySQL的系统权限相关表
第六句:再重新查看user表时,有修改。。
重起mysql服务即可完成。
0 0
- 解决解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql错误1130代码的方法
- 解决远程连接mysql 5.0 错误号1130
- 解决远程连接mysql错误1130代码的方法
- 关于FD_CLOEXEC的一个故事 http://leave001.blog.163.com/blog/static/162691293201251810343121/
- CGRectInset的使用
- Vyatta2.0发布 博科押宝SDN
- 用JS scrollHeight方法实现textarea输入高度自适应的方法
- 各种数组排序方法
- 解决远程连接mysql错误1130
- [Elasticsearch] 多字段搜索 (五) - 以字段为中心的查询
- Look and Say-3438
- 写给大家看的项目管理书(第3版)——互动出版网
- jsp中的四大作用域
- leetcode Pascal's Triangle
- js创建Form表单并提交
- Hibernate的三种状态
- hdu 2222 Keywords Search(AC自动机)