【MySQL】MySQL 5.7 "Your password has expired.To log in you must change it using a client that suppor"

转载自:https://blog.csdn.net/xunmengpiaoyun/article/details/78580398

解决办法1:更新密码:

set password=password(‘password’);

解决办法2:禁用密码有效期

ALTER USER ‘root’@localhost’ PASSWORD EXPIRE INTERVAL 90 DAYS;
ALTER USER ‘root’@‘localhost’ PASSWORD EXPIRE NEVER;
ALTER USER ‘root’@‘localhost’ PASSWORD EXPIRE DEFAULT;

第一句有效期验证 90天
第二句 不验证有效期
第三句 设置为默认值

你可能感兴趣的:(MySql)