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 master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
CREATE TABLE pid_table(pid_no INT);
[connection server_1]
LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
DELETE FROM pid_table;
include/sync_slave_sql_with_master.inc
[connection server_1]
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000002	#	Previous_gtids	#	#	Gtid_set
master-bin.000002	#	Gtid	#	#	SET @@SESSION.GTID_NEXT= 'Gtid_set'
master-bin.000002	#	Query	#	#	BEGIN
master-bin.000002	#	Query	#	#	use `test`; DELETE FROM pid_table
master-bin.000002	#	Query	#	#	COMMIT
include/rpl_stop_server.inc [server_number=1]
include/rpl_start_server.inc [server_number=1 gtids=on]
include/sync_slave_sql_with_master.inc
[connection server_2]
LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
[connection server_1]
DELETE FROM pid_table;
include/sync_slave_sql_with_master.inc
include/show_relaylog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
slave-relay-bin.000006	#	Previous_gtids	#	#	Gtid_set
slave-relay-bin.000006	#	Format_desc	#	#	SERVER_VERSION, BINLOG_VERSION
slave-relay-bin.000006	#	Gtid	#	#	SET @@SESSION.GTID_NEXT= 'Gtid_set'
slave-relay-bin.000006	#	Query	#	#	BEGIN
slave-relay-bin.000006	#	Query	#	#	use `test`; DELETE FROM pid_table
slave-relay-bin.000006	#	Query	#	#	COMMIT
include/rpl_stop_server.inc [server_number=2]
include/rpl_start_server.inc [server_number=2 gtids=on]
include/rpl_start_slaves.inc
[connection server_1]
DROP TABLE pid_table;
include/sync_slave_sql_with_master.inc
include/rpl_end.inc
