- 在装有mysql的机器上登录MySQL mysql -u root -p密码
- 执行
use mysql;
- 执行
update user set host = ‘%‘ where user = ‘root‘;
这一句执行完可能会报错,不用管它。 -
执行
FLUSH PRIVILEGES;
Host is not allowed to connect to this MySQL server解决方法
Posted ZGJ
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Host is not allowed to connect to this MySQL server解决方法相关的知识,希望对你有一定的参考价值。
以上是关于Host is not allowed to connect to this MySQL server解决方法的主要内容,如果未能解决你的问题,请参考以下文章