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相关的知识,希望对你有一定的参考价值。

 

报错

在连接mysql执行语句时报错:

ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

 

解决办法

 

执行语句:

alter user ‘root‘@localhost identified by ‘root‘;

这样就可以了。

以上是关于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