Create a jack user and set the password to expire after 10 days.
`CREATE USER 'jack' IDENTIFIED BY '12345' PASSWORD_EXPIRE INTERVAL 10 DAY FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME 1 DAY;`
After the password has expired, reset the password.
`SET PASSWORD FOR 'jack' = PASSWORD('123');`
Log in with a new password, ERROE ` Your password has expired. To log in you must change it using a client that supports expired passwords`