mariadb/mysql-test/suite/rpl/t/rpl_000015.test

41 lines
1.2 KiB
Text
Raw Normal View History

-- source include/have_log_bin.inc
#####################
# Change Author: JBM
# Change Date: 2006-01-17
# Change: added order by in select
#####################
connect (master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
connect (slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
2000-12-13 09:58:26 -07:00
connection master;
reset master;
source include/show_master_status.inc;
save_master_pos;
2000-12-13 09:58:26 -07:00
connection slave;
reset slave;
source include/show_slave_status2.inc;
2000-12-13 09:58:26 -07:00
change master to master_host='127.0.0.1';
# The following needs to be cleaned up when change master is fixed
source include/show_slave_status2.inc;
--replace_result $MASTER_MYPORT MASTER_PORT
eval change master to master_host='127.0.0.1',master_user='root',
master_password='',master_port=$MASTER_MYPORT;
source include/show_slave_status2.inc;
start slave;
sync_with_master;
source include/show_slave_status2.inc;
2000-12-13 09:58:26 -07:00
connection master;
--disable_warnings
2001-04-18 04:23:14 +03:00
drop table if exists t1;
--enable_warnings
create table t1 (n int, PRIMARY KEY(n));
2001-04-18 04:23:14 +03:00
insert into t1 values (10),(45),(90);
sync_slave_with_master;
connection slave;
SELECT * FROM t1 ORDER BY n;
connection master;
SELECT * FROM t1 ORDER BY n;
2001-04-18 04:23:14 +03:00
drop table t1;
sync_slave_with_master;