mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
26 lines
511 B
Text
26 lines
511 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
create table t1 (n int);
|
|
insert into t1 values(1);
|
|
connection slave;
|
|
show global status like 'com_insert';
|
|
Variable_name Value
|
|
Com_insert 1
|
|
stop slave;
|
|
show global status like 'com_insert';
|
|
Variable_name Value
|
|
Com_insert 1
|
|
include/wait_for_slave_to_stop.inc
|
|
start slave;
|
|
include/wait_for_slave_to_start.inc
|
|
connection master;
|
|
insert into t1 values(2);
|
|
connection slave;
|
|
select * from t1;
|
|
n
|
|
1
|
|
2
|
|
connection master;
|
|
drop table t1;
|
|
connection slave;
|
|
include/rpl_end.inc
|