Debian Codegraph @

mysql-test/suite/ndb_rpl/r/rpl_truncate_7ndb.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 **** On Master ****
7 CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
8 INSERT INTO t1 VALUES (1,1), (2,2);
9 SELECT * FROM t1 ORDER BY a,b;
10 a b
11 1 1
12 2 2
13 **** On Slave ****
14 INSERT INTO t1 VALUE (3,3);
15 SELECT * FROM t1 ORDER BY a,b;
16 a b
17 1 1
18 2 2
19 3 3
20 **** On Master ****
21 TRUNCATE TABLE t1;
22 SELECT * FROM t1 ORDER BY a,b;
23 a b
24 **** On Slave ****
25 SELECT * FROM t1 ORDER BY a,b;
26 a b
27 **** On Master ****
28 DROP TABLE t1;
29 include/show_binlog_events.inc
30 Log_name Pos Event_type Server_id End_log_pos Info
31 master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
32 master-bin.000001 # Query # # BEGIN
33 master-bin.000001 # Table_map # # table_id: # (test.t1)
34 master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
35 master-bin.000001 # Write_rows # # table_id: #
36 master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
37 master-bin.000001 # Query # # COMMIT
38 master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
39 master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
40 **** On Master ****
41 CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
42 INSERT INTO t1 VALUES (1,1), (2,2);
43 SELECT * FROM t1 ORDER BY a,b;
44 a b
45 1 1
46 2 2
47 **** On Slave ****
48 INSERT INTO t1 VALUE (3,3);
49 SELECT * FROM t1 ORDER BY a,b;
50 a b
51 1 1
52 2 2
53 3 3
54 **** On Master ****
55 DELETE FROM t1;
56 SELECT * FROM t1 ORDER BY a,b;
57 a b
58 **** On Slave ****
59 SELECT * FROM t1 ORDER BY a,b;
60 a b
61 3 3
62 **** On Master ****
63 DROP TABLE t1;
64 include/show_binlog_events.inc
65 Log_name Pos Event_type Server_id End_log_pos Info
66 master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
67 master-bin.000001 # Query # # BEGIN
68 master-bin.000001 # Table_map # # table_id: # (test.t1)
69 master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
70 master-bin.000001 # Write_rows # # table_id: #
71 master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
72 master-bin.000001 # Query # # COMMIT
73 master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
74 master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
75 master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
76 master-bin.000001 # Query # # BEGIN
77 master-bin.000001 # Table_map # # table_id: # (test.t1)
78 master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
79 master-bin.000001 # Write_rows # # table_id: #
80 master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
81 master-bin.000001 # Query # # COMMIT
82 master-bin.000001 # Query # # BEGIN
83 master-bin.000001 # Table_map # # table_id: # (test.t1)
84 master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
85 master-bin.000001 # Write_rows # # table_id: #
86 master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F
87 master-bin.000001 # Query # # COMMIT
88 master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
89 include/rpl_end.inc