mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
36 lines
380 B
Text
36 lines
380 B
Text
connection node_2;
|
|
connection node_1;
|
|
USE test;
|
|
CREATE TABLE t1(c1 INT PRIMARY KEY) ENGINE=INNODB;
|
|
INSERT INTO t1 VALUES (1), (2), (3), (4), (5);
|
|
SELECT * FROM t1;
|
|
c1
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
|
|
# On node_1
|
|
connection node_1;
|
|
SELECT * FROM test.t1;
|
|
c1
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
|
|
# On node_2
|
|
connection node_2;
|
|
SELECT * FROM test.t1;
|
|
c1
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
DROP TABLE t1;
|
|
disconnect node_2;
|
|
disconnect node_1;
|
|
# End of test
|