mysql报错:Your password has expired

错误信息如下:

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

进入mysql,设置一个新密码,并设置不过期:

mysql -uroot -p

SET PASSWORD = PASSWORD('root123456');

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

如下:


发表评论

您的邮箱地址不会被公开。