mysql数据库

MySQL : 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost

时光总嘲笑我的痴心妄想 提交于 2020-03-02 03:08:26
摘自: http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html 报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>select host, user from user; 2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql 服务器 的话。 [ 我用这个方法 测试可行,其他 方法没试过] GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH PRIVILEGES; 如果你想允许用户myuser从ip为192.168.1

[mysql] 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost

蹲街弑〆低调 提交于 2020-03-02 03:07:48
报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>select host, user from user; 2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql 服务器 的话。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH PRIVILEGES; 如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql 服务器 ,并使用mypassword作为密码 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3'

HOST ip is not allowed to connect to this MySql server

♀尐吖头ヾ 提交于 2020-03-02 03:07:00
报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>flush privileges; mysql>select host, user from user; mysql>quit 2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH PRIVILEGES; 如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql服务器,并使用mypassword作为密码 GRANT ALL PRIVILEGES ON

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

泪湿孤枕 提交于 2020-03-02 03:06:33
报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>select host, user from user; 2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql 服务器 的话。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH PRIVILEGES; 如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql 服务器 ,并使用mypassword作为密码 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3'

HOSt ip is not allowed to connect to this MySql server

时光怂恿深爱的人放手 提交于 2020-03-02 03:06:04
报错:1130-host ... is not allowed to connect to this MySql server 解决方法: 1。 改表法。 可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%' where user = 'root'; mysql>flush privileges; mysql>select host, user from user; mysql>quit 2. 授权法。 例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH PRIVILEGES; 如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql服务器,并使用mypassword作为密码 GRANT ALL PRIVILEGES ON

Host is not allowed to connect to this MySQL server

孤街醉人 提交于 2020-03-02 03:05:12
转自: http://www.cnblogs.com/wliang22/archive/2009/11/13/1602423.html 如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '210.13.92.66' is not allowed to connect to this MySQL server 请按照如下方法解决: login as: root ///登陆系统 root@tqwm.cn's password: ///输入密码 Last login: Tue Apr 15 14:06:54 2008 from 210.13.92.66 [root@myserver ~]# /usr/local/mysql/bin/mysql -uroot -hlocalhost -p ///登入mysql Enter password: ///输入mysql对应用户的密码 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 431 Server version: 5.0.58-enterprise-gpl-log Source Type 'help;' or '\h' for help. Type '\c' to clear the

‘Host’ is not allowed to connect to this mysql server

冷暖自知 提交于 2020-03-02 03:04:05
‘Host’ is not allowed to connect to this mysql server mysql 数据库不允许远程连接 方法一:修改 host 表 进入mysql数据库,选择mysql mysql> use mysql;    选择 host 表 mysql> select host from user;    更新 host, 然后退出。 mysql> update user set host = '%' where user='root';    重启数据库, 完成。 # service mysqld restart    -------------- 打赏码 -------------------------------- 来源: https://www.cnblogs.com/Jomini/p/10750277.html

Navicat 连接远程数据库报错:2003 - Can‘’t connect to MySQL server on 'XX.XX.XX.XX' (10061)

谁说我不能喝 提交于 2020-03-02 03:02:17
Navicat 连接远程数据库报错:2003 - Can‘’t connect to MySQL server on '172.22.69.190' (10061) 一、原因 远程数据库使用了默认设置,绑定的IP是127.0.0.1 二、解决方案 1.修改 远程服务器的配置 vim /etc/mysql/mysql.conf.d/mysqld.cnf 将 bind-address = 127.0.0.1 改成 bind-address = 0.0.0.0 2.重启 mysql 服务 service mysql restart 来源: https://www.cnblogs.com/ElegantSmile/p/10956636.html

Mysql数据库连接报错!1130:host XXX is not allowed to connect to this mysql server

删除回忆录丶 提交于 2020-03-02 02:59:22
我猜想是可能是连接的用户权限问题。结果这样子操作mysql库,可以解决此问题。在本机登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,从”localhost”改称'%'。。 mysql -u root -p mysql>use mysql; mysql>select 'host' from user where user='root'; mysql>update user set host = '%' where user ='root'; mysql>flush privileges; mysql>select 'host' from user where user='root'; 第一句是以权限用户root登录 第二句:选择mysql库 第三句:查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称) 第四句:修改host值(以通配符%的内容增加主机/IP地址),当然也可以直接增加IP地址 第五句:刷新MySQL的系统权限相关表 第六句:再重新查看user表时,有修改。。 重起mysql服务即可完成 一、通过MySQL-Front或mysql administrator连接mysql的时候发生的这个错误 ERROR 1130: Host *** is not allowed to connect to this

Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server

拈花ヽ惹草 提交于 2020-03-02 02:58:19
Mysql远程连接报错:SQL Error (1130): Host '192.168.0.18' is not allowed to connect to this MySQL server 通过SQLyog连接linux中的MySQL报错问题: SQL Error (1130): Host '192.168.0.18' is not allowed to connect to this MySQL server 说明你所连接的用户账户没有远程连接的权限,只能在本机localhost登录 需要更改 mysql 数据库里的 user表里的 host字段 把localhost改称% 下面是我设置的远程连接步骤,请参考: 1.登录MySQL mysql -uroot -proot 2.进入数据库 use mysql; 3.查看是否有user表 show tables; 4.更改lost字段值 update user set host='%' where host = 'localhost'; 5.刷新 flush privileges; 6.查看 select host,user from user; 出现上面的界面,说明远程连接成功,最后quit退出了。。 来源: https://www.cnblogs.com/it-tsz/p/10205940.html