Host is not allowed to connect to this MySQL server 错误的处理方法

1.

mysql>use mysql;

mysql>update user set host = '%' where user = 'root';

mysql>select host, user from user;

2. 

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

mysql>flush privileges;

说明:%是哪个IP地址可以访问这个MYsql服务,可以换成你想要的IP地址!

时间: 2024-07-29 16:35:52

Host is not allowed to connect to this MySQL server 错误的处理方法的相关文章

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

/******************************************************************** * ERROR 1130: Host '...′ is not allowed to connect to this MySQL server * 说明: * 使用远程登录mysql,结果无法登录,记录一下解决方法,其中遇到的就是远程不能 * 访问,本地能访问,或者本地不能访问,远程能访问. * * 2016-9-22 深圳 南山平山村 曾剑锋 ******

ERROR 1130 Host is not allowed to connect to this MySQL server 问题解决

新建了 mysql 数据库,使用 root 远程访问数据库,无法访问 问题: ERROR 1130: Host '192.168.11.104' is not allowed to connect to this MySQL server... 原因: 用户 root 没有远程访问的权限 解决方法: 解决1:命令行 1)首先以 root 帐户登陆 MySQL 在 Windows 主机中点击开始菜单,运行,输入"cmd",进入控制台,MySQL 的 bin 目录下,然后输入下面的命令.

mysql远程连接 Host * is not allowed to connect to this MySQL server

解决此问题有以下2个方法: localhost改成% 进入mysql的BIN目录  代码如下 复制代码 mysql -u root -p mysql>use mysql; mysql>update user set host ='%'where user ='root'; mysql>flush privileges; 具体分析 1.在本机登入mysql后,更改"mysql"数据库里的"user"表里的"host"项,从&quo

解决服务器连接错误Host ‘XXX’ is not allowed to connect to this MySQL server

这段时间在研究火车头的入库教程,在"配置登陆信息和数据库(mysql)"连接中,出现"服务器连接错误Host 'XXX' is not allowed to connect to this MySQL server"的错误.像这种错误,就是典型的远程权限问题. 问题症结是MySQL 没有开放远程登录的权限.这时要看你的服务器到底用的那种系统,linux或者是Windows,这个解决办法不同.解决的办法就是开启 MySQL 的远程登陆帐号. 有两大步: 1.确定服务器

Host '127.0.0.1' is not allowed to connect to this MySQL server

错误:Host  '127.0.0.1'  is  not  allowed  to  connect  to  this  MySQL  server 一般原因: MySQL数据库的配置文件my.ini中设置了参数: skip-name-resolve        从而导致使用"localhost"不能连接到数据库. 解决方法: 注释掉: #skip-name-resolve     注释掉对数据库的设置略有影响,但影响不大.

Mysql:is not allowed to connect to this MySQL server

如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法: 1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localh

MYSQL不能从远程连接的一个解决方法(s not allowed to connect to this MySQL server)_Mysql

如果你想连接你的mysql的时候发生这个错误: 复制代码 代码如下: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法: 1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从&

Mysql错误提示 is not allowed to connect to this MySQL server

如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.33.60' is not allowed to connect to this MySQL server 解决方法: 1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"loca

is not allowed to connect to this MySQL server解决办法

处理方法有二个 1.(如何解决客户端与服务器端的连接(mysql) :xxx.xxx.xxx.xxx is not allowed to connect to this mysql serv ) 授权法.例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话.  代码如下 复制代码 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 如果你想