Debian Codegraph @

mysql-test/suite/ndb_rpl/r/ndb_rpl_slave_restart.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 CREATE TABLE t1 (c1 CHAR(15), c2 CHAR(15), c3 INT, PRIMARY KEY (c3)) ENGINE = NDB ;
7 CREATE TABLE t2 (a int key) ENGINE = NDB ;
8 reset master;
9 SHOW TABLES;
10 Tables_in_test
11 t1
12 t2
13 INSERT INTO t1 VALUES ("row1","will go away",1);
14 SELECT * FROM t1 ORDER BY c3;
15 c1 c2 c3
16 row1 will go away 1
17 SELECT * FROM t1 ORDER BY c3;
18 c1 c2 c3
19 row1 will go away 1
20 SELECT MAX(epoch) FROM mysql.ndb_apply_status into @the_epoch;
21 SELECT @the_epoch;
22 @the_epoch
23 <the_epoch>
24 SELECT * FROM t1 ORDER BY c3;
25 c1 c2 c3
26 row1 will go away 1
27 stop slave;
28 Warnings:
29 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
30 # restart
31 set SQL_LOG_BIN=0;
32 insert into t2 values (1);
33 include/show_binlog_events.inc
34 Log_name Pos Event_type Server_id End_log_pos Info
35 master-bin.000001 # Query # # BEGIN
36 master-bin.000001 # Table_map # # table_id: # (test.t1)
37 master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
38 master-bin.000001 # Write_rows # # table_id: #
39 master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
40 master-bin.000001 # Query # # COMMIT
41 set SQL_LOG_BIN=1;
42 start slave;
43 Warnings:
44 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
45 INSERT INTO t1 VALUES ("row2","will go away",2),("row3","will change",3),("row4","D",4);
46 DELETE FROM t1 WHERE c3 = 1;
47 UPDATE t1 SET c2="should go away" WHERE c3 = 2;
48 UPDATE t1 SET c2="C" WHERE c3 = 3;
49 DELETE FROM t1 WHERE c3 = 2;
50 SELECT * FROM t1 ORDER BY c3;
51 c1 c2 c3
52 row3 C 3
53 row4 D 4
54 INSERT INTO t1 VALUES ("row5","E",5);
55 SELECT * FROM t1 ORDER BY c3;
56 c1 c2 c3
57 row3 C 3
58 row4 D 4
59 row5 E 5
60 SELECT * FROM t1 ORDER BY c3;
61 c1 c2 c3
62 row3 C 3
63 row4 D 4
64 row5 E 5
65 ==== clean up ====
66 DROP TABLE t1;
67 DROP TABLE t2;
68 STOP SLAVE;
69 Warnings:
70 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
71 CHANGE REPLICATION SOURCE TO
72 SOURCE_PORT=<MASTER_PORT>;
73 include/stop_dump_threads.inc