mysql故障---is not allowed to connect to this MySQL server解决办法

Posted bazingafraser

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql故障---is not allowed to connect to this MySQL server解决办法相关的知识,希望对你有一定的参考价值。

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

ERROR 1130: Host ’192.168.1.3′ is not allowed to connect to this mysql server这是告诉你没有权限连接指定IP的主机,下面我们来看看解决办法。

处理方法有二个

1(如何解决客户端与服务器端的连接(mysql) xxx.xxx.xxx.xxx is not allowed to connect to this mysql serv 

) 授权法。例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。

 

mysql > GRANT ALL PRIVILEGES ON *.* TO ‘myuser’@‘%’ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION;

 

如果你想允许用户myuserip192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码

 

mysql > GRANT ALL PRIVILEGES ON *.* TO ‘root’@’192.168.1.3′ IDENTIFIED BY ‘mypassword’ WITH GRANT OPTION;

 

mysql > GRANT ALL PRIVILEGES ON *.* TO ‘root’@’10.10.40.54′ IDENTIFIED BY ’123456′ WITH GRANT OPTION;

 

以上是关于mysql故障---is not allowed to connect to this MySQL server解决办法的主要内容,如果未能解决你的问题,请参考以下文章

Mysql:is not allowed to connect to this MySQL server

Mysql8- Public Key Retrieval is not allowed

报错:1130-host ... is not allowed to connect to this MySql server

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

is not allowed to connect to this mysql server

Host 127.0.0.1 is not allowed to connect MySQL