登录数据后。抉择 mysql 数据库
use mysql;
批改明码
update user set authentication_string=PASSWORD("mynewpassword") where user='root';
更新明码间接报错
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
设置明码平安机制
set global validate_password_policy=0;
再更新明码,而后刷新会话
flush privileges;
如果感觉文章对你有帮忙的话,请点个赞吧!