--echo # --echo # Bug#33822602: Improve MY-010928 your password has expired --echo # error on the server to show the user --echo # --disable_query_log CALL mtr.add_suppression("Password for the account"); --enable_query_log --echo # Create test user and expire the password CREATE USER u33822602 IDENTIFIED BY 'some_password' PASSWORD EXPIRE; --echo # Attempt to connect with expired password should fail --echo # if client cannot handle sandbox mode --error 1 --exec $MYSQL -uu33822602 -psome_password --connect-expired-password=FALSE -e "EXIT" 2>&1 --connection default DROP USER u33822602; --echo # Check error log for the presence of error message related to password expiry --let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err --let SEARCH_PATTERN=Password for the account 'u33822602'@'localhost' has expired. To log in, either change it using a client that supports expired passwords or send the change request to an administrator. --source include/search_pattern.inc