summaryrefslogtreecommitdiff
path: root/mysql-test/t/shutdown.test
blob: b12772cfb6bae6a8a04e40b044cf9c5677ff46ab (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
25
26
27
28
--source include/not_embedded.inc
#
# SHUTDOWN statement
#
create user user1@localhost;

connect (c1,localhost,user1,,);

--error ER_SPECIFIC_ACCESS_DENIED_ERROR
shutdown;

connection default;
disconnect c1;

--let $_server_id= `SELECT @@server_id`
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
--exec echo "wait" > $_expect_file_name

shutdown;

--source include/wait_until_disconnected.inc

--exec echo "restart" > $_expect_file_name
--enable_reconnect
--source include/wait_until_connected_again.inc

drop user user1@localhost;