mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
6a5f89c9b1
client/mysqltest.c: --replace_result can now use variables mysql-test/r/rpl000014.result: Fix to use new replace mysql-test/r/rpl000015.result: Fix to use new replace mysql-test/r/rpl000016.result: Fix to use new replace mysql-test/r/rpl_log.result: Fix to use new replace mysql-test/t/join.test: Fix to use new replace mysql-test/t/rpl000014.test: Fix to use new replace mysql-test/t/rpl000015.test: Fix to use new replace mysql-test/t/rpl000016.test: Fix to use new replace mysql-test/t/rpl_log.test: Fix to use new replace readline/rltty.c: Add missing function
35 lines
1 KiB
Text
35 lines
1 KiB
Text
source include/master-slave.inc;
|
|
connection master;
|
|
show master status;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
|
|
show slave status;
|
|
change master to master_log_pos=73;
|
|
slave stop;
|
|
change master to master_log_pos=73;
|
|
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
|
|
show slave status;
|
|
slave start;
|
|
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
|
|
show slave status;
|
|
change master to master_log_pos=173;
|
|
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
|
|
show slave status;
|
|
connection master;
|
|
show master status;
|
|
create table if not exists foo(n int);
|
|
drop table if exists foo;
|
|
create table foo (n int);
|
|
insert into foo values (1),(2),(3);
|
|
save_master_pos;
|
|
connection slave;
|
|
change master to master_log_pos=79;
|
|
sync_with_master;
|
|
select * from foo;
|
|
connection master;
|
|
drop table foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|