@@ -13,46 +13,46 @@ ALTER TABLE t1 ADD COLUMN f2 INTEGER;
13
13
FLUSH LOGS;
14
14
SHOW BINLOG EVENTS IN 'mysqld-bin.000002' LIMIT 4,18;
15
15
Log_name Pos Event_type Server_id End_log_pos Info
16
- mysqld-bin.000002 353 Gtid 1 391 GTID 0-1-1
17
- mysqld-bin.000002 391 Query 1 504 use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
18
- mysqld-bin.000002 504 Gtid 1 542 BEGIN GTID 0-1-2
19
- mysqld-bin.000002 542 Table_map 1 583 table_id: 48 (test.t1)
20
- mysqld-bin.000002 583 Write_rows_v1 1 617 table_id: 48 flags: STMT_END_F
21
- mysqld-bin.000002 617 Xid 1 644 COMMIT /* xid=2 */
22
- mysqld-bin.000002 644 Gtid 1 682 GTID 0-1-3
23
- mysqld-bin.000002 682 Query 1 783 use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
24
- mysqld-bin.000002 783 Gtid 1 821 BEGIN GTID 0-1-4
25
- mysqld-bin.000002 821 Table_map 1 862 table_id: 49 (test.t2)
26
- mysqld-bin.000002 862 Write_rows_v1 1 896 table_id: 49 flags: STMT_END_F
27
- mysqld-bin.000002 896 Xid 1 923 COMMIT /* xid=4 */
28
- mysqld-bin.000002 923 Gtid 1 961 BEGIN GTID 0-1-5
29
- mysqld-bin.000002 961 Table_map 1 1002 table_id: 49 (test.t2)
30
- mysqld-bin.000002 1002 Write_rows_v1 1 1036 table_id: 49 flags: STMT_END_F
31
- mysqld-bin.000002 1036 Xid 1 1063 COMMIT /* xid=5 */
32
- mysqld-bin.000002 1063 Gtid 1 1101 GTID 0-1-6
33
- mysqld-bin.000002 1101 Query 1 1200 use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
16
+ mysqld-bin.000002 # Gtid # # GTID 0-1-1
17
+ mysqld-bin.000002 # Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
18
+ mysqld-bin.000002 # Gtid # # BEGIN GTID 0-1-2
19
+ mysqld-bin.000002 # Table_map # # table_id: 48 (test.t1)
20
+ mysqld-bin.000002 # Write_rows_v1 # # table_id: 48 flags: STMT_END_F
21
+ mysqld-bin.000002 # Xid # # COMMIT /* xid=2 */
22
+ mysqld-bin.000002 # Gtid # # GTID 0-1-3
23
+ mysqld-bin.000002 # Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
24
+ mysqld-bin.000002 # Gtid # # BEGIN GTID 0-1-4
25
+ mysqld-bin.000002 # Table_map # # table_id: 49 (test.t2)
26
+ mysqld-bin.000002 # Write_rows_v1 # # table_id: 49 flags: STMT_END_F
27
+ mysqld-bin.000002 # Xid # # COMMIT /* xid=4 */
28
+ mysqld-bin.000002 # Gtid # # BEGIN GTID 0-1-5
29
+ mysqld-bin.000002 # Table_map # # table_id: 49 (test.t2)
30
+ mysqld-bin.000002 # Write_rows_v1 # # table_id: 49 flags: STMT_END_F
31
+ mysqld-bin.000002 # Xid # # COMMIT /* xid=5 */
32
+ mysqld-bin.000002 # Gtid # # GTID 0-1-6
33
+ mysqld-bin.000002 # Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
34
34
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
35
35
COUNT(*) = 2
36
36
1
37
37
SHOW BINLOG EVENTS IN 'mysqld-bin.000003' LIMIT 3,18;
38
38
Log_name Pos Event_type Server_id End_log_pos Info
39
- mysqld-bin.000003 313 Gtid 1 351 GTID 0-1-1
40
- mysqld-bin.000003 351 Query 1 464 use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
41
- mysqld-bin.000003 464 Gtid 1 502 BEGIN GTID 0-1-2
42
- mysqld-bin.000003 502 Table_map 1 543 table_id: 30 (test.t1)
43
- mysqld-bin.000003 543 Write_rows_v1 1 577 table_id: 30 flags: STMT_END_F
44
- mysqld-bin.000003 577 Xid 1 604 COMMIT /* xid=2 */
45
- mysqld-bin.000003 604 Gtid 1 642 GTID 0-1-3
46
- mysqld-bin.000003 642 Query 1 743 use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
47
- mysqld-bin.000003 743 Gtid 1 781 BEGIN GTID 0-1-4
48
- mysqld-bin.000003 781 Table_map 1 822 table_id: 31 (test.t2)
49
- mysqld-bin.000003 822 Write_rows_v1 1 856 table_id: 31 flags: STMT_END_F
50
- mysqld-bin.000003 856 Xid 1 883 COMMIT /* xid=4 */
51
- mysqld-bin.000003 883 Gtid 1 921 BEGIN GTID 0-1-5
52
- mysqld-bin.000003 921 Table_map 1 962 table_id: 31 (test.t2)
53
- mysqld-bin.000003 962 Write_rows_v1 1 996 table_id: 31 flags: STMT_END_F
54
- mysqld-bin.000003 996 Xid 1 1023 COMMIT /* xid=5 */
55
- mysqld-bin.000003 1023 Gtid 1 1061 GTID 0-1-6
56
- mysqld-bin.000003 1061 Query 1 1160 use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
39
+ mysqld-bin.000003 # Gtid # # GTID 0-1-1
40
+ mysqld-bin.000003 # Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
41
+ mysqld-bin.000003 # Gtid # # BEGIN GTID 0-1-2
42
+ mysqld-bin.000003 # Table_map # # table_id: 30 (test.t1)
43
+ mysqld-bin.000003 # Write_rows_v1 # # table_id: 30 flags: STMT_END_F
44
+ mysqld-bin.000003 # Xid # # COMMIT /* xid=2 */
45
+ mysqld-bin.000003 # Gtid # # GTID 0-1-3
46
+ mysqld-bin.000003 # Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
47
+ mysqld-bin.000003 # Gtid # # BEGIN GTID 0-1-4
48
+ mysqld-bin.000003 # Table_map # # table_id: 31 (test.t2)
49
+ mysqld-bin.000003 # Write_rows_v1 # # table_id: 31 flags: STMT_END_F
50
+ mysqld-bin.000003 # Xid # # COMMIT /* xid=4 */
51
+ mysqld-bin.000003 # Gtid # # BEGIN GTID 0-1-5
52
+ mysqld-bin.000003 # Table_map # # table_id: 31 (test.t2)
53
+ mysqld-bin.000003 # Write_rows_v1 # # table_id: 31 flags: STMT_END_F
54
+ mysqld-bin.000003 # Xid # # COMMIT /* xid=5 */
55
+ mysqld-bin.000003 # Gtid # # GTID 0-1-6
56
+ mysqld-bin.000003 # Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
57
57
DROP TABLE t1;
58
58
DROP TABLE t2;
0 commit comments