2016-12-05 20:19:01 +02:00
|
|
|
include/master-slave.inc
|
|
|
|
[connection master]
|
2016-12-29 13:23:18 +01:00
|
|
|
connection master;
|
|
|
|
connection slave;
|
|
|
|
connection slave;
|
2016-12-05 20:19:01 +02:00
|
|
|
stop slave;
|
2016-12-29 13:23:18 +01:00
|
|
|
connection master;
|
2016-12-05 20:19:01 +02:00
|
|
|
create table t1 (a int) engine=innodb;
|
2016-12-29 13:23:18 +01:00
|
|
|
connection slave;
|
2016-12-05 20:19:01 +02:00
|
|
|
reset slave;
|
|
|
|
start slave;
|
|
|
|
stop slave;
|
|
|
|
start slave;
|
|
|
|
select max(a) from t1;
|
|
|
|
max(a)
|
|
|
|
8000
|
2016-12-29 13:23:18 +01:00
|
|
|
connection master;
|
2016-12-05 20:19:01 +02:00
|
|
|
drop table t1;
|
2016-12-29 13:23:18 +01:00
|
|
|
connection slave;
|
2016-12-05 20:19:01 +02:00
|
|
|
include/rpl_end.inc
|