`
sundful
  • 浏览: 1232126 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

MYSQL错误 NO.1130 ERROR的解决

阅读更多
如果你想连接你的mysql的时候发生这个错误:
ERROR 1130: Host '10.10.27.44' is not allowed to connect to this MySQL server
解决方法:
1。 改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -pvmware
mysql>use mysql;
mysql>update user set host = '%' where user = 'root';
mysql>flush privileges;
mysql>select host, user from user;[/pre]
2. 授权法。例如,你想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;
分享到:
评论

相关推荐

    MySQL导入sql脚本错误:2006 解决方法

    MySQL导入sql脚本错误:2006 – MySQL server has gone away 到如一些小脚本很少报错,但最近导入一个10+M的SQL脚本,却重复报错: Error occured at:2014-03-24 11:42:24 Line no.:85 Error Code: 2006 - MySQL ...

    mysql数据库my.cnf配置文件

    log-error=/home/mysql/log/mysqld.log pid-file =/home/mysql/mysqld.pid bind-address = 0.0.0.0 server-id = 1 #表示是本机的序号为1,一般来讲就是master的意思 skip-grant-tables skip-name-resolve # 禁止MySQL...

    mysql中异常错误ERROR:2002的解决方法

    最近在启动mysql 报错,错误提示如下: ERROR 2002 (HY000): Can't connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock' (2) 排查过程 1、先查看 /etc/rc.d/init.d/mysqld status 看看...

    MySQL出现SQL Error (2013)连接错误的解决方法

    等待约一两分钟后出现错误提示:SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0,如下图所示: 开始以为是远程TCP/IP root只能通过...

    Python2.7安装MYSQL库各种支撑库及资源

    _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 希望软件对您...

    mysql安装失败

    The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES) ...

    MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)

    代码如下:Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0 很明显这是连接初始化阶段就丢失了连接的错误。 google半天大多是说的注释掉配置文件中 bind-address = ...

    MySQL_python-1.2.5-cp27-none-win32.zip

    python MySQL-python模块 django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb. Did you install mysqlclient or MySQL-python

    MySQL读取Binlog日志常见的3种错误

    1. mysqlbinlog: [ERROR] unknown variable ‘default-character-set=utf8mb4’ ...mysql bin可执行文件所在路径/bin/mysqlbinlog –no-defaults binlog所在目录/mysql_bin.000005 2.ERROR 1840 (HY000) at line 24: @

    mysql linux安装出错 libaio-dev

    mysql linux下安装时,存在以下错误: Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

    mysql ERROR 1045 (28000)问题的解决方法

    遇到mysql ERROR 1045 这个问题搞了很久,自己记下来。方法是百度的,亲测有效...windows下,以上两个错误的解决方法 1、找到配置文件my.ini ,然后将其打开,可以选择用记事本打开 2、打开后,搜索mysqld关键字找到后

    MySql插入数据成功但是报[Err] 1055错误的解决方案

    1.问题: 这两天做insert操作,...以上所述是小编给大家介绍的MySql插入数据成功但是报[Err] 1055错误的解决方案,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对

    Centos安装mysql数据库必须包libaio-0.3.107-10.el6.x86_64

    用于Centos操作系统,安装mysql数据时,需要的libaio文件。如果您在安装时候,报这个错误...mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

    your MySQL server version for the right syntax to use near ‘(0) NOT NULL, `endTime` datetime(0) NO

    You have an error in your SQL syntax; check the manual that ...今天帮一个朋友调试时,发现MySQL5.5版本的数据库导入执行MySQL5.7版本导出的脚本,报了上面的错误,说说解决办法,其实主要是datetime(0)字段类型的

    MySQL-Python安装问题小记

    安装完mysql-python后import加载模块提示以下错误, 代码如下: ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory 于是google之,总结一下解决方法: (1)在...

    [php]mysql数据库操作——DB类

    private $pageNo=1; // 当前页 private $pageAll=1; // 总页数 private $rsAll=0; // 总记录 private $pageSize=10; // 每页显示记录条数 /****************************************************************...

    winxp 安装MYSQL 出现Error 1045 access denied 的解决方法

    操作系统:WINDOWS-XP 系统数据库版本:mysql 5.x提示:access denied for user ‘root’@’localhost’ using password yes/no原来都好好的,今天开机上来提示上面的这个错误,重启 MySQL 还是不可以。注意我这里的...

    php mysql Errcode: 28 终极解决方法

    perror 28 Error code 28: No space left on device SQL语句执行错误:SELECT title,gid FROM blog_blog WHERE date < 1246200383 and hide = ‘n’ and type=’blog’ ORDER BY date DESC LIMIT 1 Error writing...

    cp30报错No operations allowed after connection closed

    使用mysql+cp30连接池时,报错No operations allowed after connection closed。从报错信息来看,是connection断开导致的错误。在网上搜索后发现,较新版本的mysql配置了connection的默认时间,默认时间一般为8个...

Global site tag (gtag.js) - Google Analytics