MySQL5.7 错误:ERROR 1820 (HY000): You must reset your password using ALTER USER statement before ...

来源:互联网 发布:淘宝限购在哪里设置 编辑:程序博客网 时间:2024/05/02 03:02
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;

做完以上操作就修改密码成功了,然后就不会再提示错误了。

0 0
原创粉丝点击