快捷搜索:  MTU2MjQxMjI2MA`  as  lzyq858.com`

is not allowed to connect to this MySQL server

ERROR 1130: Host '192.168.1.110' 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>select host, user from user;

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 'root'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.10.40.54' IDENTIFIED BY '123456' WITH GRANT OPTION;

您可能还会对下面的文章感兴趣: