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