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解决方法相关的知识,希望对你有一定的参考价值。

  1. 在装有mysql的机器上登录MySQL mysql -u root -p密码
  2. 执行use mysql;
  3. 执行update user set host = ‘%‘ where user = ‘root‘;这一句执行完可能会报错,不用管它。
  4. 执行FLUSH PRIVILEGES;

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

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

ERROR 1130: Host ’...′ is not allowed to connect to this MySQL server

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

报错:1130-host ... is not allowed to connect to this MySql server

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

1130-host ... is not allowed to connect to this MySql server