登录mysql
修改密码
alter user 'root'@'localhost' identified by '新密码' password expire never;
alter user 'root'@'localhost' identified with mysql_native_password by '新密码';
刷新权限
5、退出mysql,重新使用新密码登录
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/4006.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~