当前位置: 代码迷 >> 综合 >> MySQL8.0:Host is not allowed to connect to this MySQL server
  详细解决方案

MySQL8.0:Host is not allowed to connect to this MySQL server

热度:68   发布时间:2023-12-10 13:05:01.0

 

1、执行登陆MySQL mysql -u root -p 密码
2、执行use mysql;
3、执行update user set host = '%' where user = 'root';
4、执行FLUSH PRIVILEGES;

注意:四步骤缺一不可

  相关解决方案