首页 > 代码库 > mysql远程连接 Host * is not allowed to connect to this MySQL server

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

在本机登入mysql后,更改"mysql"数据库里的"user"表里的"host"项,从"localhost"改为‘%‘

代码如下         

mysql>

mysql>use mysql;

mysql>select ‘host‘ from user where user=‘root‘;

#查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)

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