summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/kill_and_restart_mysqld.inc
blob: b67fb7350b4fc836a40a015b1299be1b4e64b544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (!$restart_parameters)
{
  let $restart_parameters = restart;
}

--let $_server_id= `SELECT @@server_id`
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect

--echo # Kill and $restart_parameters
--exec echo "$restart_parameters" > $_expect_file_name
--shutdown_server 0
--source include/wait_until_disconnected.inc
--enable_reconnect
--source include/wait_until_connected_again.inc
--disable_reconnect