1
--source include/have_falcon.inc
2
--source include/have_binlog_format_row.inc
3
--source include/master-slave.inc
5
--echo **** On Master ****
8
DROP DATABASE IF EXISTS tpcb;
14
SET BINLOG_FORMAT = 'ROW';
16
CREATE TABLE account (
19
balance decimal(10,2),
24
SHOW CREATE TABLE account;
26
INSERT INTO account VALUES (1, 2, 1.2, "FRESH ACCOUNT");
27
INSERT INTO account VALUES (2, 5, 1.2, "FRESH ACCOUNT");
28
INSERT INTO account VALUES (3, 2, 1.2, "FRESH ACCOUNT");
29
INSERT INTO account VALUES (4, 2, 1.2, "FRESH ACCOUNT");
31
SELECT * FROM account;
33
--echo **** On Slave ****
34
sync_slave_with_master;
36
SELECT * FROM account;
38
--echo **** On Master ****
40
UPDATE account SET balance = 3.5 WHERE id = 3;
41
UPDATE account SET filler = 'Updated' WHERE id = 2;
42
UPDATE account SET balance = 9.2, bid = 21,
43
filler = 'Updated' WHERE id = 4;
45
SELECT * FROM account;
47
--echo **** On Slave ****
48
sync_slave_with_master;
49
SELECT * FROM account;
51
--echo **** On Master ****
54
--echo **** On Slave ****
55
sync_slave_with_master;