mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
27 lines
473 B
Text
27 lines
473 B
Text
|
source include/master-slave.inc;
|
||
|
|
||
|
#
|
||
|
# Test of init_slave variable
|
||
|
#
|
||
|
|
||
|
save_master_pos;
|
||
|
connection slave;
|
||
|
sync_with_master;
|
||
|
reset master;
|
||
|
connection master;
|
||
|
create table t1(n int);
|
||
|
insert into t1 values (@a), (@b);
|
||
|
select * from t1;
|
||
|
save_master_pos;
|
||
|
connection slave;
|
||
|
sync_with_master;
|
||
|
select * from t1;
|
||
|
set global init_connect="set @c=1";
|
||
|
show variables like 'init_connect';
|
||
|
connection master;
|
||
|
drop table t1;
|
||
|
save_master_pos;
|
||
|
connection slave;
|
||
|
sync_with_master;
|
||
|
stop slave;
|