--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --shutdown_server --source include/wait_until_disconnected.inc --perl use File::Path 'rmtree'; $DDIR=$ENV{"MYSQL_TMP_DIR"}."/installdb_test"; rmtree([ "$DDIR" ]); EOF --echo # Execution of mysql_install_db starts............ --exec $MYSQL_INSTALL_DB --defaults-file=$MYSQL_TEST_DIR/t/m_i_db_config.cnf --mysqld-file=$MYSQLD --loose-ssl-setup-file=$MYSQL_SSL_RSA_SETUP --datadir=$DDIR --basedir=$BASEDIR --lc_messages_dir=$MYSQL_SHAREDIR --extra-sql-file=$MYSQL_TEST_DIR/t/m_i_db_createschema.sql $midparam > $MYSQLTEST_VARDIR/tmp/m_i_db.out 2>&1 --echo # Execution of mysql_install_db ends.............. --exec echo "restart:--datadir=$DDIR " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --enable_reconnect --source include/wait_until_connected_again.inc --remove_file $MYSQLTEST_VARDIR/tmp/m_i_db.out --perl $passwd=""; open(PWDPATH, "$ENV{MYSQL_TMP_DIR}/readpwdfilepath.txt") or die("Could not open pwdpath file"); my $filename = ; chomp $filename; if (-e $filename) { open(PWDFILE, $filename) or die("Could not open password file"); my @pass = ; chomp @pass; $passwd=@pass[1]; } open(FILE, ">", "$ENV{MYSQL_TMP_DIR}/readpwd.inc") or die $!; print FILE "delimiter lessprobability;\n"; print FILE "let passwd=$passwd"; print FILE "lessprobability\n"; print FILE "--delimiter ;\n"; close FILE; EOF --source $MYSQL_TMP_DIR/readpwd.inc