1
#############################################################
4
# based on rpl_multi_engine3.inc
5
#############################################################
17
--echo --- Populate t1 with data ---
20
INSERT INTO t1 VALUES(42,1,'Testing MySQL databases is a cool ',
21
'Must make it bug free for the customer',
22
654321.4321,15.21,0,1965,"1905-11-14");
23
INSERT INTO t1 VALUES(2,1,'Testing MySQL databases is a cool ',
24
'Must make it bug free for the customer',
25
654321.4321,15.21,0,1965,"1965-11-14");
26
INSERT INTO t1 VALUES(4,1,'Testing MySQL databases is a cool ',
27
'Must make it bug free for the customer',
28
654321.4321,15.21,0,1965,"1985-11-14");
29
INSERT INTO t1 VALUES(142,1,'Testing MySQL databases is a cool ',
30
'Must make it bug free for the customer',
31
654321.4321,15.21,0,1965,"1995-11-14");
32
INSERT INTO t1 VALUES(412,1,'Testing MySQL databases is a cool ',
33
'Must make it bug free for the customer',
34
654321.4321,15.21,0,1965,"2005-11-14");
37
--echo --- Select from t1 on master ---
42
sync_slave_with_master;
43
--echo --- Select from t1 on slave ---
48
--echo --- Perform basic operation on master ---
49
--echo --- and ensure replicated correctly ---
52
--echo --- Update t1 on master --
53
UPDATE t1 SET b1 = 0, bc='updated', t="2006-02-22"
57
--echo --- Check the update on master ---
63
# Must give injector thread a little time to get update
64
# into the binlog other wise we will miss the update.
66
sync_slave_with_master;
67
--echo --- Check Update on slave ---
74
--echo --- Remove a record from t1 on master ---
75
# Note: there is an error in replication of Delete_row
76
# from NDB to MyISAM (BUG#28538). However, if there is
77
# only one row in Delete_row event then it works fine,
78
# as this test demonstrates.
79
DELETE FROM t1 WHERE id = 412;
81
--echo --- Show current count on master for t1 ---
82
SELECT COUNT(*) FROM t1;
84
sync_slave_with_master;
85
--echo --- Show current count on slave for t1 ---
86
SELECT COUNT(*) FROM t1;
90
sync_slave_with_master;