mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin(

Posted 无知死循环

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin(相关的知识,希望对你有一定的参考价值。

解决办法

1、 修改用户密码

mysql> alter user ‘root‘@‘localhost‘ identified by ‘youpassword‘;

或者

mysql> set password=password("youpassword");

2、刷新权限

mysql> flush privileges;

以上是关于mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin(的主要内容,如果未能解决你的问题,请参考以下文章

MySQL ERROR 1820 (HY000)

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 before execu

mysql5.7初始化密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement

mysql 报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin(

mysql 5.7密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before exe