MySQL password expired
From MySQL 5.7.4, the default value for default_password_lifetime is 360 (per year). If you do not make any changes to this variable or individual user accounts, all user passwords will expire after 360 days (so you get: βYour password has expired. To log in, you must change it using a client that supports expired passwords ").
To prevent the password from expiring automatically, log in as root ( mysql -u root -p ):
For clients that automatically connect to the server (for example, from scripts.), Change the password expiration settings:
ALTER USER 'script'@'localhost' PASSWORD EXPIRE NEVER;
or you can disable auto-password for all users:
SET GLOBAL default_password_lifetime = 0;
The links I used to understand and fix this
MySQL: Password Expiration and Sandbox Mode
MySQL: password expiration policy
Password Expiration Policy in MySQL Server 5.7
Dave evert
source share