# ERROR 1862 (HY000): Your password has expired

**URL:** <https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778>\
**Category:** Other MySQL® Questions\
**Created:** [June 27, 2013, 1:52am UTC](https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778 "2013-06-27T01:52:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yogesh777](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yogesh777](https://forums.percona.com/u/yogesh777)\
**Post date:** [June 27, 2013, 1:52am UTC](https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778/1 "2013-06-27T01:52:48Z")

</div>

I was installing new MySQL Version 5.6.12, starts the server and when i try to connect using password from /root/.mysql\_secret file I got disconnected with following error  
ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords. After some hit and try i got into mysql console and reset the root password using mysql\> SET PASSWORD = PASSWORD(‘root’); Now i am trying understand why I was getting ERROR 1862 (HY000). I tried to reproduce the same error by reinstalling 5.6.12 but no success. I expired the password manually, however i am still able to connect to console and just getting error “ERROR 1820 (HY000): You must SET PASSWORD before executing this statement” when i issue some command on console. As per the doc [url][http://dev.mysql.com/doc/mysql-security-excerpt/5.6/en/password-expiration.html[/url]](http://dev.mysql.com/doc/mysql-security-excerpt/5.6/en/password-expiration.html%5B/url%5D) i should get ERROR 1862 (HY000) after expiring passwords. any idea?

---

<div class="post-metadata">

**Author:** ![niljoshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/niljoshi/32/16889_2.png) [@niljoshi](https://forums.percona.com/u/niljoshi)\
**Post date:** [June 27, 2013, 11:36pm UTC](https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778/2 "2013-06-27T23:36:34Z")

</div>

Hi,

Looks like when you have installed 5.6.12, password expiration capability was enable and when first time you attempt to login, your user/client has been put in “sanbox mode”. so first time you got error like something like this.

shell\> mysql -u myuser -p Password: \*\*\*\*\*\* ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.  
and when

mysql\> USE test; ERROR 1820 (HY000): You must SET PASSWORD before executing this statement  
So as per the documentation, after enable expiration, when first time you’ll attempt to login, you 'll get 1862 error but after login, if you’ll try to run any command other than SET then you’ll get error 1820.

I hope this makes sense. Thanks.

---

<div class="post-metadata">

**Author:** ![yogesh777](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@yogesh777](https://forums.percona.com/u/yogesh777)\
**Post date:** [June 28, 2013, 2:05am UTC](https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778/3 "2013-06-28T02:05:32Z")

</div>

Yes that must be the case, but how can i reproduce the error or how can i put mysql in sandbox mode manually?

---

<div class="post-metadata">

**Author:** ![niljoshi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/niljoshi/32/16889_2.png) [@niljoshi](https://forums.percona.com/u/niljoshi)\
**Post date:** [July 1, 2013, 12:47am UTC](https://forums.percona.com/t/error-1862-hy000-your-password-has-expired/2778/4 "2013-07-01T00:47:25Z")

</div>

Hi,

I think to reproduce it, either you can remove that version from server and re-install same MySQL version again OR you can install same version on some another server/VM and check. sandbox mode is apply by MySQL itself so you can’t change it manually.
