1
突然收到此错误:MySQL错误1820必须重置密码
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
我并没有改变任何配置等?为什么突然要求重置?密码过期了吗?
突然收到此错误:MySQL错误1820必须重置密码
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
我并没有改变任何配置等?为什么突然要求重置?密码过期了吗?
您可以使用
mysql> SET PASSWORD = PASSWORD('your_new_password');
[重置密码的Mysql] [1]
OR
如果你使用MySQL的-u根-p启动mysql的尝试
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
Source: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
这将取决于[建立的政策](https://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html)将是我的猜测。是的密码可以手动过期,或者通过策略可以自动过期。 (请参阅上面的链接) – xQbert