ERROR 1130 (HY000): Host 'xxxxxx' is not allowed to connect to this MySQL server解决办法
2013-10-15 10:23
1026 查看
出现该问题的原因是没有权限连接指定IP的主机(即MySQL数据库所在主机),解决办法:
) 授权法。
如果你想myuser使用mypassword从任何主机连接到mysql服务器的话,则应该
GRANT ALL PRIVILEGES ON
*.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码,则应该
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3′
IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
当然,以上的前提是你要访问的数据库允许远程登录,修改办法
编辑 vim /etc/mysql/my.cnf
将bind-address = 127.0.0.1中的127.0.0.1改为0.0.0.0
) 授权法。
如果你想myuser使用mypassword从任何主机连接到mysql服务器的话,则应该
GRANT ALL PRIVILEGES ON
*.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码,则应该
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3′
IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
当然,以上的前提是你要访问的数据库允许远程登录,修改办法
编辑 vim /etc/mysql/my.cnf
将bind-address = 127.0.0.1中的127.0.0.1改为0.0.0.0
相关文章推荐
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- Error No. 1130 Host '*.*.*.*' is not allowed to connect to this MySQL server解决方法
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决办法
- ERROR 1130 (HY000): Host 'localhost' 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)
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- mysql数据库错误ERROR 1130:Host '' is not allowed to connect to this mysql server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- 转 Error No. 1130 Host '*.*.*.*' is not allowed to connect to this MySQL server
- mysql本地訪问linuxserver,出现SQLSTATE[HY000] [1130] Host '127.0.0.1' is not allowed to connect to this
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- Sqoop-1.4.6配置连接mysql提示ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- Host '*.*.*.*' is not allowed to connect to this MySQL server 解决办法
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- mysql远程连接:ERROR 1130 (HY000): 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:ERROR 1130: Host '192.168.0.102' is not allowed to connect to this MySQL server