码迷,mamicode.com
首页 > 数据库 > 详细

ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server

时间:2016-09-22 19:44:42      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

/********************************************************************
 * 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. select host, user from user;

 

ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server

标签:

原文地址:http://www.cnblogs.com/zengjfgit/p/5897385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!