mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
30 lines
450 B
Text
30 lines
450 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
CREATE TEMPORARY TABLE t1(c1 INTEGER);
|
|
CREATE TABLE t2(c1 INTEGER);
|
|
connection slave;
|
|
CREATE TABLE t1(c1 INTEGER);
|
|
INSERT INTO t1 VALUES(1), (2);
|
|
INSERT INTO t2 VALUES(1), (2);
|
|
SELECT * FROM t1;
|
|
c1
|
|
1
|
|
2
|
|
SELECT * FROM t2;
|
|
c1
|
|
1
|
|
2
|
|
connection master;
|
|
TRUNCATE t1;
|
|
TRUNCATE t2;
|
|
connection slave;
|
|
SELECT * FROM t1;
|
|
c1
|
|
1
|
|
2
|
|
SELECT * FROM t2;
|
|
c1
|
|
DROP TABLE t1;
|
|
connection master;
|
|
DROP TABLE t2;
|
|
include/rpl_end.inc
|