| 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 INT) ENGINE=InnoDB; |
| 7 |
include/sync_slave_sql_with_master.inc |
| 8 |
LOCK TABLES t1 WRITE; |
| 9 |
[connection master] |
| 10 |
INSERT INTO t1 (c1) VALUES (1); |
| 11 |
[connection slave] |
| 12 |
[connection master] |
| 13 |
Populate the table with additional 5 rows |
| 14 |
include/sync_slave_io_with_master.inc |
| 15 |
# Adding debug point 'pause_on_queue_event_after_write_buffer' to @@GLOBAL.debug |
| 16 |
[connection master] |
| 17 |
DROP TABLE t1; |
| 18 |
[connection slave] |
| 19 |
SET DEBUG_SYNC='now WAIT_FOR receiver_reached_pause_on_queue_event'; |
| 20 |
UNLOCK TABLES; |
| 21 |
Wait until all the inserts are applied |
| 22 |
include/show_relaylog_events.inc |
| 23 |
Log_name Pos Event_type Server_id End_log_pos Info |
| 24 |
slave-relay-bin.000002 # Rotate # # master-bin.000001;pos=POS |
| 25 |
slave-relay-bin.000002 # Format_desc # # SERVER_VERSION, BINLOG_VERSION |
| 26 |
slave-relay-bin.000002 # Rotate # # master-bin.000001;pos=POS |
| 27 |
slave-relay-bin.000002 # Gtid # # SET @@SESSION.GTID_NEXT= 'Gtid_set' |
| 28 |
slave-relay-bin.000002 # Query # # use `test`; CREATE TABLE t1 (c1 INT) ENGINE=InnoDB |
| 29 |
slave-relay-bin.000002 # Gtid # # SET @@SESSION.GTID_NEXT= 'Gtid_set' |
| 30 |
# Removing debug point 'pause_on_queue_event_after_write_buffer' from @@GLOBAL.debug |
| 31 |
SET DEBUG_SYNC='now SIGNAL receiver_continue_queuing_event'; |
| 32 |
include/rpl_end.inc |