mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
38 lines
442 B
Text
38 lines
442 B
Text
change master to
|
|
MASTER_HOST='dummy.localdomain',
|
|
RELAY_LOG_FILE='slave-relay-bin.000001',
|
|
RELAY_LOG_POS=4;
|
|
start slave sql_thread;
|
|
select MASTER_POS_WAIT('master-bin.000001', 3776);
|
|
# Result on slave
|
|
SELECT * FROM t1;
|
|
id
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
SELECT * FROM t2;
|
|
id
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
DROP TABLE IF EXISTS t1, t2;
|
|
DROP PROCEDURE IF EXISTS p1;
|
|
DROP PROCEDURE IF EXISTS p2;
|
|
DROP FUNCTION IF EXISTS f1;
|
|
DROP TRIGGER IF EXISTS tr1;
|