mirror of
https://github.com/MariaDB/server.git
synced 2025-05-07 04:01:59 +03:00
20 lines
601 B
PHP
20 lines
601 B
PHP
#
|
|
# few innodb tests depend on innodb tablespace being completelty clean and new
|
|
#
|
|
# this file deletes old innodb files and restarts mysqld
|
|
#
|
|
|
|
let $_server_id= `SELECT @@server_id`;
|
|
let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect;
|
|
let $datadir= `SELECT @@datadir`;
|
|
exec echo "wait" > $_expect_file_name;
|
|
shutdown_server 10; # give it 10 seconds to die
|
|
remove_file $datadir/ib_logfile0;
|
|
remove_file $datadir/ib_logfile1;
|
|
remove_file $datadir/ibdata1;
|
|
exec echo "restart" > $_expect_file_name;
|
|
enable_reconnect;
|
|
source include/wait_until_connected_again.inc;
|
|
disable_reconnect;
|
|
|