Debian Codegraph @

mysql-test/suite/binlog_encryption/mysqlbinlog.test

raw
1 source include/have_log_bin.inc;
2 source include/have_debug.inc;
3
4 let datadir=`select @@datadir`;
5 RESET MASTER;
6 CREATE TABLE t1 (a INT);
7 INSERT INTO t1 VALUES (1),(2),(3);
8 REPLACE INTO t1 VALUES (4);
9 DROP TABLE t1;
10 FLUSH LOGS;
11
12 let filename= master-bin.000001;
13 let local=$datadir/$filename;
14 let remote=--read-from-remote-server --protocol=tcp --host=127.0.0.1 --port=$MASTER_MYPORT -uroot $filename;
15 let outfile=$MYSQLTEST_VARDIR/tmp/binlog_enc.sql;
16 --error 1
17 exec $MYSQL_BINLOG $local > $outfile;
18 exec $MYSQL_BINLOG $local --force-read >> $outfile;
19 exec $MYSQL_BINLOG $remote >> $outfile;
20 --let SEARCH_FILE= $outfile
21 --let SEARCH_PATTERN= Ignorable event type 164.*
22 --source include/search_pattern_in_file.inc
23 remove_file $outfile;
24