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后,更改"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的主要内容,如果未能解决你的问题,请参考以下文章