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

刚安装的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!

上一篇:[转]linux下的fms2流媒体服务器搭建六部曲之四-----格式转换篇


下一篇:quartz集群报错but has failed to stop it. This is very likely to create a memory leak.