当前位置:Gxlcms > 数据库问题 > Host is not allowed to connect to this MySQL server解决方法

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

时间:2021-07-01 10:21:17 帮助过:9人阅读

先说说这个错误,其实就是我们的MySQL不允许远程登录,所以远程登录失败了,解决方法如下:

  1. 在装有MySQL的机器上登录MySQL mysql -u root -p密码
  2. 执行use mysql;
  3. 执行update user set host = ‘%‘ where user = ‘root‘;
  4. 执行FLUSH PRIVILEGES;

    经过上面4步,就可以解决这个问题了

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

标签:code   serve   登录   his   not   set   user   connect   date   

人气教程排行