Centos7-mysql运行报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

  1. 云栖社区>
  2. 博客>
  3. 正文

Centos7-mysql运行报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

论尽先生 2018-10-23 23:15:36 浏览2958
展开阅读全文

刚安装的mysql,输入任何内容都报

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

就是要重新设置一下密码的意思

SET PASSWORD = PASSWORD('yourpwd');

继续报错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
密码太简单了。??? 还简单? 干脆修改密码策略。

set global validate_password_policy=0;
set global validate_password_length=1;
SET PASSWORD = PASSWORD('yourpwd');

ok!

网友评论

登录后评论
0/500
评论
论尽先生
+ 关注