blob: d936d65bc21146c46e71fbd7409e7a7a294d6ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#
# 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 #
--let $replace=create user '$USER'
--replace_result $replace "create user 'USER'"
--eval create user '$USER' identified via unix_socket
--let $replace=alter user '$USER'
--replace_result $replace "alter user 'USER'"
--eval alter user '$USER' password expire
--exec $MYSQL -u $USER -e 'select 1'
--let $replace=drop user '$USER'
--replace_result $replace "drop user 'USER'"
--eval drop user '$USER'
|