修改mysql 8的root密码 真的坑,什么傻X设计。 ``` 首先看看有多少个账户 select host, user, authentication_string, plugin from user; # 清除这个字符串 update user set authentication_string='' where user='root'; # 重新设置密码,有多少个账户就执行多少次 alter user 'root'@'localhost'identified with mysql_native_password by '123456'; alter user 'root'@'%'identified with mysql_native_password by '123456'; # 刷新权限 flush privileges; ``` 来自 大脸猪 写于 2019-11-12 19:39 -- 更新于2020-10-19 13:06 -- 0 条评论