MYSQL ERROR 1862 (HY000): Your password has expired.

在IDEA里面遇到错误:

The specified user/password combination is rejected:

[HY000][1862] Your password has expired.
To log in you must change it using a client that supports expired passwords.


原因是:

MySQL 5.7.16 introduces password-expiration capability, to enable database administrators to expire account passwords and require users to reset their password. 


所以只需重新修改下密码即可,修改方式如下:

以root权限登录mysql:(这里我的账户是root,密码也是root)

mysql -u root -p

然后输入自己的密码,之后:

SET PASSWORD = PASSWORD('root');


OK,可以正常使用了。

发布了51 篇原创文章 · 获赞 1 · 访问量 2万+

在IDEA里面遇到错误:

The specified user/password combination is rejected:

[HY000][1862] Your password has expired.
To log in you must change it using a client that supports expired passwords.


原因是:

MySQL 5.7.16 introduces password-expiration capability, to enable database administrators to expire account passwords and require users to reset their password. 


所以只需重新修改下密码即可,修改方式如下:

以root权限登录mysql:(这里我的账户是root,密码也是root)

mysql -u root -p

然后输入自己的密码,之后:

SET PASSWORD = PASSWORD('root');


OK,可以正常使用了。

猜你喜欢

转载自blog.csdn.net/panlongbao_918/article/details/56484496
今日推荐