MySQL8设置root用户远程访问.240103

  1. 查询当前root状态,默认root的host是localhost
    use mysql; select user,host from user;

  2. update root的host为%
    update user set host = '%' where user ='root';

  3. 检查客户端windows 的防火墙,关闭防火墙

  4. try。

posted @ 2025-01-06 11:21  中国的Amadeus  阅读(14)  评论(0)    收藏  举报