远程连接MySQL提示 Host is not allowed to connect to this MySQL server

Posted 你好,旧时光

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了远程连接MySQL提示 Host is not allowed to connect to this MySQL server相关的知识,希望对你有一定的参考价值。

进入连接的主机修改系统数据库mysql 下面的user表,把User= root(这里可能是其他你所需要连接的用户名)的这行数据的Host从localhost改为%

如下图:

 

修改完之后一定要重启MySQL服务,否则无效

services.msc

然后就可以远程连接至该数据库了,以下是我配置weblogic的jndi数据源远程连接测试

 

以上是关于远程连接MySQL提示 Host is not allowed to connect to this MySQL server的主要内容,如果未能解决你的问题,请参考以下文章

解决远程连接数据库:Host is not allowed to connect to this MySQL server

远程连接mysql报错:1130 - Host XXX is not allowed to connect to this MySQL server

远程连接mysql时,提示“is not allowed to connect to this MySQL server”的解决方法

MyBatis3 连接MySQL8 提示:message from server: “Host ‘xxx‘ is not allowed to connect to this MySQL server

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

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