MySQL修改root用户密码 报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

修改 root 密码

alter user user() identified by '数字 & 大写字母 & 小写字母 & 特殊符号';

是不是觉得密码又难有复杂 没事还有办法 不过前提是你先设置好难的密码 不然后面不让你操作
密码太简单就报错咯

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

报错

密码之所以要设置的又难又复杂 就是应为这

SHOW VARIABLES LIKE 'validate_password%';

MySQL修改root用户密码 报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements_第1张图片
直接改

set global validate_password_policy=LOW;
set global validate_password_length=6;

MySQL修改root用户密码 报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements_第2张图片
这就搞定了 密码你就可以设置123456

你可能感兴趣的:(mysql,数据库,database)