You must reset your password using ALTER USER statement before executing this statement.

Posted

tags:

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

参考技术A

登陆成功后输入命令的时候,发现总是提示:

普及一下 mysql 修改密码的两种方法:ALTER USER 和SET PASSWORD

基本使用:

修改当前登陆用户密码

设置密码过期

设置密码永不过期

设置密码按照默认过期的时间

设置密码指定的过期时间

mysql 默认加密方法

mysql 中的 password 函数加密方法

关于you must reset your password using ALTER USER statement before exectuting this statement 解决

安装完mysql 之后,登陆以后,不管运行任何命令,总是提示这个

step 1:SET PASSWORD = PASSWORD(‘your new password‘);

step 2:ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;

step 3:flush privileges;

完成以上三步退出再登,使用新设置的密码就行了,以上除了红色的自己修改成新密码外,其他原样输入即可

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

MySQL You must reset your password using ALTER USE

You must reset your password using ALTER USER statement before executing this statement.

You must reset your password using ALTER USER statement before executing this statement.

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 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin(