定位 发表于 2020-5-7 15:33:44

Centos7-mysql运行报错ERROR 1820 (HY000): You must reset your password using A...

刚安装的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!
页: [1]
查看完整版本: Centos7-mysql运行报错ERROR 1820 (HY000): You must reset your password using A...