mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
20 lines
702 B
Text
20 lines
702 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
connection master;
|
|
create table t1(a int not null auto_increment, b int, primary key(a));
|
|
create table t2(a int not null auto_increment, b int, primary key(a)) engine=innodb;
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
|
start transaction;
|
|
insert into t2(b) values (1);
|
|
insert into t2(b) values (2);
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t2;
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t2;
|
|
commit;
|
|
connection slave;
|
|
include/diff_tables.inc [master:t1, slave:t1]
|
|
include/diff_tables.inc [master:t2, slave:t2]
|
|
connection master;
|
|
drop table t1;
|
|
drop table t2;
|
|
connection slave;
|
|
include/rpl_end.inc
|