config root man

Current Path : /home/usr.opt/mysql57/mysql-test/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/t/mysqladmin_shutdown.test

# Embedded server doesn't support external clients
--source include/not_embedded.inc

# Supported on platforms with UNIX sockets only
--source include/not_windows.inc

--echo #
--echo # Bug#28466137 MYSQLADMIN SHUTDOWN DOES NOT WAIT FOR MYSQL TO SHUT DOWN ANYMORE
--echo #

--let $_pid_file_location= `SELECT @@pid_file`

# Write file to make mtr expect the shutdown and avoid implicit restart
--let $_server_id= `SELECT @@server_id`
--let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
--exec echo "wait" > $_expect_file_name

--exec $MYSQLADMIN -uroot --password="" -S $MASTER_MYSOCK shutdown 2>&1

# pid file should be gone
--error 1
--file_exists $_pid_file_location

--source include/wait_until_disconnected.inc

--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--enable_reconnect
--source include/wait_until_connected_again.inc

Man Man