1. 程式人生 > >【MySQL】MySQL 5.7 "Your password has expired.To log in you must change it using a client that suppor"

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


解決辦法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天
第二句 不驗證有效期
第三句 設定為預設值