2016-05-01 18:10:13 +02:00
|
|
|
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
|
|
|
connection node_2;
|
2015-04-21 19:17:17 +02:00
|
|
|
START SLAVE;
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_1;
|
2015-04-21 19:17:17 +02:00
|
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
INSERT INTO t1 VALUES(1);
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_2;
|
2015-04-21 19:17:17 +02:00
|
|
|
INSERT INTO t1 VALUES (2);
|
2016-05-01 18:10:13 +02:00
|
|
|
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
|
2015-04-21 19:17:17 +02:00
|
|
|
SELECT COUNT(*) = 2 FROM t1;
|
|
|
|
COUNT(*) = 2
|
|
|
|
1
|
|
|
|
INSERT INTO t1 VALUES (3);
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_2;
|
2015-04-21 19:17:17 +02:00
|
|
|
SELECT COUNT(*) = 3 FROM t1;
|
|
|
|
COUNT(*) = 3
|
|
|
|
1
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_1;
|
2015-04-21 19:17:17 +02:00
|
|
|
DROP TABLE t1;
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_2;
|
2015-04-21 19:17:17 +02:00
|
|
|
STOP SLAVE;
|
|
|
|
RESET SLAVE ALL;
|
2016-05-01 18:10:13 +02:00
|
|
|
connection node_1;
|
2015-08-12 14:32:18 +02:00
|
|
|
RESET MASTER;
|