ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server
2016-09-22 18:01
330 查看
/******************************************************************** * ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server * 说明: * 使用远程登录mysql,结果无法登录,记录一下解决方法,其中遇到的就是远程不能 * 访问,本地能访问,或者本地不能访问,远程能访问。 * * 2016-9-22 深圳 南山平山村 曾剑锋 *******************************************************************/ 一、参考文档: 1. 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html 2. 开启Mysql远程访问的所有方法 http://superyjcqw.blog.163.com/blog/static/16105830520117111040436/ 二、报错: 1. ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server 2. ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY' 三、解决办法: 1. use mysql; 2. update user set host='%' where user='root' and host='localhost'; 3. GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'aplex' WITH GRANT OPTION; # 如果存在可以省略 4. UPDATE user SET Password=PASSWORD('your password') where USER='root' and host='127.0.0.1'; 5. select host, user from user; 四、shell登录: mysql -h 127.0.0.1 -u root -p
相关文章推荐
- ERROR 1130 (HY000): Host '192.168.225.128' 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:ERROR 1130: Host '192.168.0.102' is not allowed to connect to this MySQL server
- ERROR 1130: Host ***.***.***.*** is not allowed to connect to this MySQL serverERROR 1062 (23000):
- 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: Host 'A'is not allowed to connect to this MySQL server
- ERROR 1130: Host '' is not allowed to connect to thisMySQL server
- [置顶] ERROR 1130 (HY000): Host '172.16.0.123' is not allowed to connect to this MySQL server
- 转 Error No. 1130 Host '*.*.*.*' 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 xxx is not allowed to connect to this MySQL server
- MYSQL错误1130:ERROR 1130: Host 10.10.36.115 is not allowed to connect to this MySQL server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- SQL Error (1130): Host IP 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
- Sqoop-1.4.6配置连接mysql提示ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server
- ERROR 1130: Host '' 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
- 關於添加Mysql sytsemdsn 時出現SQL Error (1130): Host IP is not allowed to connect to this MySQL server錯誤的解決方案