Host is not allowed to connect to this MySQL server解决方法
Posted 葱花blog
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Host is not allowed to connect to this MySQL server解决方法相关的知识,希望对你有一定的参考价值。
先说说这个错误,其实就是我们的mysql不允许远程登录,所以远程登录失败了,解决方法如下:
- 在装有MySQL的机器上登录MySQL mysql -u root -p密码
- 执行
use mysql;
- 执行
update user set host = ‘%‘ where user = ‘root‘;
-
执行
FLUSH PRIVILEGES;
经过上面4步,就可以解决这个问题了
以上是关于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