mysql error:Your password has expired

Viewed 13

error:

Error when connecting to server: Your password has expired. To log in you must change it using a client that supports expired passwords.


1 Answers

Enter MySQL, set a new password, and set it to not expire:

mysql -uroot -p

SET PASSWORD = PASSWORD('root123456');

ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;