mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Update location of binlog
This commit is contained in:
@ -15,8 +15,9 @@ load data infile '../../std_data/words.dat' into table t2;
|
|||||||
#
|
#
|
||||||
# Save binlog
|
# Save binlog
|
||||||
#
|
#
|
||||||
|
let $MYSQLD_DATADIR=`select @@datadir`;
|
||||||
flush logs;
|
flush logs;
|
||||||
--exec $MYSQL_BINLOG --hexdump $MYSQLTEST_VARDIR/log/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
--exec $MYSQL_BINLOG --hexdump $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clear database and restore from binlog
|
# Clear database and restore from binlog
|
||||||
@ -51,7 +52,7 @@ insert into t2 select * from t2;
|
|||||||
select count(*) from t2;
|
select count(*) from t2;
|
||||||
|
|
||||||
flush logs;
|
flush logs;
|
||||||
--exec $MYSQL_BINLOG --hexdump $MYSQLTEST_VARDIR/log/master-bin.000003 > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
--exec $MYSQL_BINLOG --hexdump $MYSQLD_DATADIR/master-bin.000003 > $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
||||||
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
--exec $MYSQL test < $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -62,6 +63,6 @@ select count(*) from t2;
|
|||||||
#
|
#
|
||||||
# Test cleanup
|
# Test cleanup
|
||||||
#
|
#
|
||||||
--exec rm $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
--remove_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
||||||
drop table t1;
|
drop table t1;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
|
Reference in New Issue
Block a user