Mysql is not allowed to connect mysql server

Posted ☞书香门第☜

tags:

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

 

  1.     mysql -u root -p

  2.    select host from user where user=‘root‘;      //可以看到当前主机配置信息为localhost.

  3. update user set host = ‘%‘ where user =‘root‘     如果2的列表不唯一,就需要后面添加条件

  4.  FLUSH PRIVILEGES;       刷新权限列表

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

Mysql is not allowed to connect mysql server

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

is not allowed to connect to this mysql server

Host is not allowed to connect to this MySQL server解决方法

Host is not allowed to connect to this MySQL server解决方法

Host '127.0.0.1' is not allowed to connect to this MySQL server