1
-- source include/have_log_bin.inc
4
# Change Date: 2006-01-17
5
# Change: added order by in select
8
connect (master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
9
connect (slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
12
source include/show_master_status.inc;
16
source include/show_slave_status2.inc;
19
change master to master_host='127.0.0.1';
20
# The following needs to be cleaned up when change master is fixed
21
source include/show_slave_status2.inc;
22
--replace_result $MASTER_MYPORT MASTER_PORT
23
eval change master to master_host='127.0.0.1',master_user='root',
24
master_password='',master_port=$MASTER_MYPORT, MASTER_CONNECT_RETRY=7;
25
source include/show_slave_status2.inc;
28
source include/show_slave_status2.inc;
31
drop table if exists t1;
33
create table t1 (n int, PRIMARY KEY(n));
34
insert into t1 values (10),(45),(90);
35
sync_slave_with_master;
37
SELECT * FROM t1 ORDER BY n;
39
SELECT * FROM t1 ORDER BY n;
41
sync_slave_with_master;