mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
18 lines
374 B
Text
18 lines
374 B
Text
source include/master-slave.inc;
|
|
connection master;
|
|
use test;
|
|
drop table if exists foo;
|
|
create table foo (n int);
|
|
insert into foo values(1);
|
|
connection slave;
|
|
#give slave some breathing room to get started
|
|
sleep 1;
|
|
slave stop;
|
|
slave start;
|
|
connection master;
|
|
insert into foo values(2);
|
|
connection slave;
|
|
#let slave catch up
|
|
sleep 1;
|
|
@r/rpl000011.result select * from foo;
|
|
|