Mysql错误--ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql出现以上错误是因为你设置了密码的长度和规则,错误如下:
1. 显示变量语句:show variables like '%56%';,如下:
2. 显示密码规则语句:show variables like 'validate_password%';
3. 修改密码规则:set global validate_password_policy = 0;
4. 修改密码长度: set global validate_password_length =4;
重新显示密码规则:
重新执行语句:grant all privileges on *.* to 'root'@'%' identified by '123456';
执行成功, 刷新MySQL的系统权限相关表:flush privileges;