1、You must reset your password using ALTER USER statement before executing this statement.
在执行此语句之前,必须使用ALTER USER语句重置密码。
(1)、 修改用户密码
mysql> alter user 'root'@'localhost' identified by 'youpassword';
或者
mysql> set password=password("youpassword");
(2)、刷新权限
mysql> flush privileges;
Your password does not satisfy the current policy requirements
您的密码不符合当前的策略要求
注意:如果只想设置简单密码需要修改两个全局参数:
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
mysql> SET PASSWORD = PASSWORD('123456'); //123456 是重置的新密码