1
=====Configuring the enviroment=======;
2
include/master-slave.inc
4
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
5
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
7
call mtr.add_suppression('Attempting backtrace');
8
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
9
call mtr.add_suppression("Binlog has bad magic number; It's not a binary log file that can be used by this version of MySQL");
10
CREATE TABLE t1(a INT, PRIMARY KEY(a)) engine=innodb;
11
insert into t1(a) values(1);
12
insert into t1(a) values(2);
13
insert into t1(a) values(3);
14
=====Inserting data on the master but without the SQL Thread being running=======;
15
include/stop_slave_sql.inc
16
insert into t1(a) values(4);
17
insert into t1(a) values(5);
18
insert into t1(a) values(6);
19
=====Removing relay log files and crashing/recoverying the slave=======;
20
include/stop_slave_io.inc
21
SET SESSION debug="d,crash_before_rotate_relaylog";
23
ERROR HY000: Lost connection to MySQL server during query
24
include/rpl_reconnect.inc
25
=====Dumping and comparing tables=======;
26
include/start_slave.inc
27
include/diff_tables.inc [master:t1,slave:t1]
28
=====Corrupting the master.info=======;
29
include/stop_slave.inc
31
insert into t1(a) values(7);
32
insert into t1(a) values(8);
33
insert into t1(a) values(9);
34
SET SESSION debug="d,crash_before_rotate_relaylog";
36
ERROR HY000: Lost connection to MySQL server during query
37
include/rpl_reconnect.inc
38
=====Dumping and comparing tables=======;
39
include/start_slave.inc
40
include/diff_tables.inc [master:t1,slave:t1]