2
CREATE TABLE t1 (a int);
3
### assertion: index file contains regular entries
4
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
9
### assertion: show original binlogs
13
### assertion: binlog contents from regular entries
14
show binlog events from <binlog_start>;
15
Log_name Pos Event_type Server_id End_log_pos Info
16
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a int)
18
### assertion: index file contains renamed binlog and the new one
19
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');
22
master-bin-b34582.000001
25
### assertion: original binlog content still exists, despite we
26
### renamed and changed the index file
27
show binlog events from <binlog_start>;
28
Log_name Pos Event_type Server_id End_log_pos Info
29
master-bin-b34582.000001 # Query # # use `test`; CREATE TABLE t1 (a int)
30
### assertion: user changed binlog index shows correct entries
33
master-bin-b34582.000001 #
36
### assertion: purging binlogs up to binlog created after instrumenting index file should work
37
PURGE BINARY LOGS TO 'master-bin.000002';
38
### assertion: show binary logs should only contain latest binlog
42
### assertion: assert that binlog files were indeed purged (using file_exists calls)
43
### assertion: assert that not purged binlog file exists
44
### assertion: show index file contents and these should match show binary logs issued above
45
SET @index=LOAD_FILE('MYSQLTEST_VARDIR/mysqld.1/data//master-bin.index');