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 p (a int);
set session pseudo_server_id= 10;
insert into p (a) values (1), (2), (3), (4), (5);
set session pseudo_server_id= 2;
insert into p (a) values (11), (12), (13), (14), (15);
include/sync_slave_sql_with_master.inc
select * from p;
a
1
2
3
4
5
11
12
13
14
15
set session pseudo_server_id= 0;
drop table p;
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
master-bin.000001	#	Query	1	#	use `test`; create table p (a int)
master-bin.000001	#	Query	10	#	BEGIN
master-bin.000001	#	Query	10	#	use `test`; insert into p (a) values (1), (2), (3), (4), (5)
master-bin.000001	#	Xid	10	#	COMMIT /* XID */
master-bin.000001	#	Query	2	#	BEGIN
master-bin.000001	#	Query	2	#	use `test`; insert into p (a) values (11), (12), (13), (14), (15)
master-bin.000001	#	Xid	2	#	COMMIT /* XID */
master-bin.000001	#	Query	1	#	use `test`; DROP TABLE `p` /* generated by server */
include/sync_slave_sql_with_master.inc
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
include/rpl_end.inc
