Every MySQL DBA has at least peeked at a mysql.user table. But with the latest versions come some changes that many may have not noticed. The last three of the forty three columns — plugin, authentication_string, and password_expired — fields deserve a closer look.
First off, lets look at the entire table that is the output of
DESC mysq.user run in MySQL Workbench and only the last
few lines are shown for the sake of clarity.
The password_expired field is simply set to ‘N’ if the
password is expired.
ALTER USER 'joeuser'@'localhost' PASSWORD
EXPIRE;
The use will receive a message that their password has expired
and they need to set a new one IF their client supports resetting
password. The account is is “sandbox” mode where the use has …