ERROR 1130 (HY000): Host '192.168.20.165' is not allowed to connect to this MySQL server
2017-12-29 11:41
639 查看
问题
远程连接mysql时遇到如下问题:ERROR 1130 (HY000): Host ‘192.168.20.165’ is not allowed to connect to this MySQL server
解决
远程登录有权限限制,需要对用户赋权。GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; flush privileges; //生效
表示授权某个用户在哪些主机上可以对哪些数据库和表进行哪些操作。
ON *.* db.table: 数据库和数据表
TO user: 要授权的用户
@ host: %’表示任何主机
参考
http://blog.csdn.net/leroy008/article/details/16116847相关文章推荐
- ERROR 1130 (HY000): Host 'xxxxxx' 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 ‘hostname’ 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
- IT忍者神龟之mysql远程连接:ERROR 1130 (HY000): Host '*.*.*.*' is not allowed to connect to this MySQL server解决
- ERROR 1130 (HY000): Host 'xxx' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '10.117.1.13' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '192.168.225.128' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- [置顶] ERROR 1130 (HY000): Host '172.16.0.123' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host '113.57.150.82' 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 '192.168.1.3' is not allowed to connect to thisMySQL server
- ERROR 1130: Host xxx is not allowed to connect to this MySQL server
- 解决MySQL ERROR 1130 (HY000): Host 'XXX' is not allowed to connect to this MySQL server
- 解决MySQL ERROR 1130 (HY000): Host 'XXXX' 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 ’...′ is not allowed to connect to this MySQL server