mysql 5.7 版本 You must reset your password using ALTER USER statement before executing this statement

Posted Andrew_F

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 5.7 版本 You must reset your password using ALTER USER statement before executing this statement相关的知识,希望对你有一定的参考价值。

https://blog.csdn.net/muziljx/article/details/81541896

 

mysql版本5.7.6版本开始的用户可以使用如下命令:

mysql> ALTER USER USER() IDENTIFIED BY ‘Xiaoming250‘;


个别使用者为了后期麻烦,会将密码过期功能禁用,命令如下:

ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;

以上是关于mysql 5.7 版本 You must reset your password using ALTER USER statement before executing this statement的主要内容,如果未能解决你的问题,请参考以下文章

Mac 安装 MySQL 5.7 后登入后无法执行命令You must reset your password using ALTER USER statement before executing

mysql 5.7密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before exe

Mysql 5.7ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execut(代

MySQL You must reset your password using ALTER USE

主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea

关于mysql 5.7版本“报[Err] 1093 - You can't specify target table 'XXX' for update in FROM clau