MySQL5.7 错误:ERROR 1820 (HY000): You must reset your password using ALTER USER statement before ...
2016-08-31 00:01
507 查看
mysql> alter user 'root'@'localhost' identified by '111111';
输入以上语句,会提示:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirement.
MySQL5.7 加强了安全保障,以上意思是密码不符合安全策略要求,我们输入一个8位或以上长度,复杂一点的密码,比如:
mysql> alter user 'root'@'localhost' identified by '#20as3SElksds0ew98';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
做完以上操作就修改密码成功了,然后就不会再提示错误了。
相关文章推荐
- mysql 5.7 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executi
- [mysql] ERROR 1820 (HY000): 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 executing this statement.
- MySQL 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- MYSQL 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- 第一次登录mysql,使用任何命令都报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- 【MySQL】ERROR 1820 (HY000): 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
- mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing
- 5.7 以后的MYSQL 登录数据库还是报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement be
- mysql中ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- 错误mac mysql error You must reset your password using ALTER USER statement before executing this stat
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this ..
- mac mysql error You must reset your password using ALTER USER statement before executing this statem
- MySQL错误:You must reset your password using ALTER USER statement before executing this statement.
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing t