2019-02-19 01:03:16 +01:00
|
|
|
#
|
|
|
|
# Test password expiration
|
|
|
|
#
|
|
|
|
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
--source include/have_unix_socket.inc
|
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # A password cannot expire, if there is no password
|
|
|
|
--echo #
|
|
|
|
|
2021-06-09 15:50:01 +03:00
|
|
|
--let $replace=create user '$USER'
|
|
|
|
--replace_result $replace "create user 'USER'"
|
|
|
|
--eval create user '$USER' identified via unix_socket
|
2019-02-19 01:03:16 +01:00
|
|
|
|
2021-06-09 15:50:01 +03:00
|
|
|
--let $replace=alter user '$USER'
|
|
|
|
--replace_result $replace "alter user 'USER'"
|
|
|
|
--eval alter user '$USER' password expire
|
2019-02-19 01:03:16 +01:00
|
|
|
|
|
|
|
--exec $MYSQL -u $USER -e 'select 1'
|
|
|
|
|
2021-06-09 15:50:01 +03:00
|
|
|
--let $replace=drop user '$USER'
|
|
|
|
--replace_result $replace "drop user 'USER'"
|
|
|
|
--eval drop user '$USER'
|