Debian Codegraph @

mysql-test/suite/rpl_nogtid/r/rpl_replicate_same_server_id.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 ==== If server with replicate-same-server-id is slave of itself, it executes transactions twice ====
7 ---- Initialize ----
8 [connection slave]
9 CREATE TABLE t1 (n INT);
10 RESET MASTER;
11 include/stop_slave.inc
12 CHANGE REPLICATION SOURCE TO SOURCE_PORT = SLAVE_PORT;
13 include/start_slave.inc
14 ---- Test ----
15 INSERT INTO t1 VALUES (1);
16 SELECT * FROM t1;
17 n
18 1
19 1
20 ---- Clean up ----
21 include/stop_slave.inc
22 DROP TABLE t1;
23 CHANGE REPLICATION SOURCE TO SOURCE_PORT = MASTER_PORT;
24 ==== START SLAVE UNTIL works with replicate-same-server-id ====
25 ---- Initialize ----
26 [connection master]
27 CREATE TABLE t1(n int);
28 CREATE TABLE t2(n int);
29 ---- Test ----
30 [connection slave]
31 START SLAVE UNTIL SOURCE_LOG_FILE = 'master-bin.000001', SOURCE_LOG_POS = UNTIL_POS;
32 include/wait_for_slave_io_to_start.inc
33 include/wait_for_slave_sql_to_stop.inc
34 include/assert.inc [t1 should be replicated, t2 should not]
35 ---- Clean up ----
36 [connection slave]
37 include/start_slave_sql.inc
38 [connection master]
39 DROP TABLE t1;
40 DROP TABLE t2;
41 include/rpl_end.inc