连接MySQL数据库Host is not allowed to connect to this Mysql server 问题的解决办法

2023-11-15 08:17:13

在cmd中连接上MySQL

1.执行 use mysql ;

2.执行 update user set host = '%' where user ='root';

3.执行 flush  privileges;

最后一定要执行第三步刷新MySQL的权限相关表!!!

  • 作者:会飞地太阳
  • 原文链接:https://blog.csdn.net/duan196_118/article/details/107389855
    更新时间:2023-11-15 08:17:13