ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
Posted 苏格拉的底
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st相关的知识,希望对你有一定的参考价值。
linux操作mysql一直提示
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
首先,修改validate_password_policy参数的值
mysql> set global validate_password_policy=0;
Query OK,0 rows affected (0.00 sec)
validate_password_length(密码长度)参数默认为8,我们修改为1
mysql> set global validate_password_length=1;
Query OK,0 rows affected (0.00 sec)
完成之后再次执行修改密码语句即可成功
mysql> alter user 'root'@'localhost' identified by '123456';
Query OK,0 rows affected (0.00 sec)
授权远程访问
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
show databses;才有反应
以上是关于ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st的主要内容,如果未能解决你的问题,请参考以下文章
linux - mysql 异常:ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
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 st
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before execu
安装完绿色版MySQL修改密码:ERROR 1820 (HY000): You must reset your password using ALTER USER statement befo re