mysql不允许其他ip连接 MySql - SQL Error (1130): Host IP is not allowed to connect to this MySQL server
2014-06-17 08:53
531 查看
通过Navicat连接MYSQL数据库报错:
SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server
说明所连接的用户帐号没有远程连接的权限,只能在本机(localhost)登录。
需更改 mysql 数据库里的 user表里的 host项
把localhost改称%
首先按下面的步骤登录Mysql服务器
登录mysql需要切换到dos下的mysql的bin目录,进行如下操作:
mysql>use mysql;
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
mysql>select 'host','user' from user where user='root';
mysql>quit
OK。远程连接成功!
SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server
说明所连接的用户帐号没有远程连接的权限,只能在本机(localhost)登录。
需更改 mysql 数据库里的 user表里的 host项
把localhost改称%
首先按下面的步骤登录Mysql服务器
登录mysql需要切换到dos下的mysql的bin目录,进行如下操作:
mysql>use mysql;
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
mysql>select 'host','user' from user where user='root';
mysql>quit
OK。远程连接成功!
相关文章推荐
- 远程连接服务器出现 SQL Error (1130): Host IP is not allowed to connect to this MySQL server 错误
- Mysql 远程连接错误:1130-host IP is not allowed to connect to this MySql server
- SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- MySql - SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- 怎么解决mysql不允许远程连接的错误1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server“
- SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- MySql - SQL Error (1130): Host IP is not allowed to connect to this MySQL server
- 使用navicat设置mysql允许外部IP连接【1130 - Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL serve】
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- MySQL : 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost
- 關於添加Mysql sytsemdsn 時出現SQL Error (1130): Host IP is not allowed to connect to this MySQL server錯誤的解決方案