1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
include/master-slave.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
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.
[connection master]
[connection master]
[connection slave]
include/stop_slave.inc
SET @@global.binlog_transaction_compression=FALSE;
include/start_slave.inc
[connection master]
include/rpl_reset.inc
[connection master]
include/rpl_reset.inc
[connection slave]
include/stop_slave.inc
# compression DISABLED
[connection master]
SET @@session.binlog_transaction_compression=FALSE;
[connection slave]
include/start_slave_io.inc
[connection master]
CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY, c2 LONGTEXT);
[connection master]
include/sync_slave_io_with_master.inc
include/include/rpl_get_end_of_relay_log.inc
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/stop_slave_sql.inc
[connection master]
BEGIN;
INSERT INTO t1 VALUES (10, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (9, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (8, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (7, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (6, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (5, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (4, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (3, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (2, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (1, REPEAT('a', 1000000));
COMMIT;
BINLOG EVENTS on master ['NONE']
include/assert_binlog_events.inc [!Gtid_or_anon # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
[connection master]
include/sync_slave_io_with_master.inc
RELAY LOG EVENTS for 'NONE'
include/assert_binlog_events.inc [!Gtid_or_anon # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/assert.inc [Assert that master and slave tables have the same content]
BINLOG EVENTS on slave ['NONE'] (no compression, since slave applier has binlog_transaction_compression = NONE)
include/assert_binlog_events.inc [!Gtid_or_anon # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
[connection master]
DROP TABLE t1;
include/sync_slave_sql_with_master.inc
[connection master]
include/rpl_reset.inc
[connection slave]
include/stop_slave.inc
# ZSTD compression ENABLED
[connection master]
SET @@session.binlog_transaction_compression=TRUE;
[connection slave]
include/start_slave_io.inc
[connection master]
CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY, c2 LONGTEXT);
[connection master]
include/sync_slave_io_with_master.inc
include/include/rpl_get_end_of_relay_log.inc
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/stop_slave_sql.inc
[connection master]
BEGIN;
INSERT INTO t1 VALUES (10, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (9, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (8, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (7, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (6, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (5, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (4, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (3, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (2, REPEAT('a', 1000000));
INSERT INTO t1 VALUES (1, REPEAT('a', 1000000));
COMMIT;
BINLOG EVENTS on master ['ZSTD']
include/assert_binlog_events.inc [!Gtid_or_anon # Transaction_payload # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
[connection master]
include/sync_slave_io_with_master.inc
RELAY LOG EVENTS for 'ZSTD'
include/assert_binlog_events.inc [!Gtid_or_anon # Transaction_payload # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
include/start_slave_sql.inc
[connection master]
include/sync_slave_sql_with_master.inc
include/assert.inc [Assert that master and slave tables have the same content]
BINLOG EVENTS on slave ['ZSTD'] (no compression, since slave applier has binlog_transaction_compression = NONE)
include/assert_binlog_events.inc [!Gtid_or_anon # !Begin # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Table_map # Write_rows # Xid]
[connection master]
DROP TABLE t1;
include/sync_slave_sql_with_master.inc
[connection master]
[connection master]
include/assert.inc [Compressed transaction is a lot smaller than uncompressed]
[connection master]
SET @@global.binlog_transaction_compression=SAVED;
[connection slave]
SET @@global.binlog_transaction_compression=SAVED;
include/stop_slave.inc
include/start_slave.inc
[connection master]
include/rpl_reset.inc
include/rpl_end.inc
|