alter user root@localhost identified by '123456' password expire never;
alter user root@localhost identified with mysql_native_password by '123456';
flush privileges;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30046312/viewspace-2636851/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30046312/viewspace-2636851/
本文介绍了如何使用SQL命令修改MySQL中root用户的密码,并确保密码永不过期。此外,还展示了如何指定使用mysql_native_password认证插件进行身份验证,以及更新权限缓存的方法。

1082

被折叠的 条评论
为什么被折叠?



