-
Notifications
You must be signed in to change notification settings - Fork 680
Open
Labels
Description
MySQL 5.7 and newer can set password for account expired:
https://dev.mysql.com/doc/refman/5.7/en/password-expiration-policy.html
When this is done, account can login, however all what can be done is to
reset password. It seems mycli don't understand this feature:
mysql root@localhost:(none)> CREATE USER 'tst'@'localhost' IDENTIFIED BY 'MyNewPass4.';
Query OK, 0 rows affected
Time: 0.002s
mysql root@localhost:(none)> ALTER USER 'tst'@'localhost' PASSWORD EXPIRE;
Query OK, 0 rows affected
Time: 0.001s
mysql root@localhost:(none)> exit
Goodbye!
$ mycli -utst
Password:
(1862, 'Your password has expired. To log in you must change it using a client that supports expired passwords.')
Would be nice if mycli could add such support.
Reactions are currently unavailable