rpl_000015.test 1.11 KB
Newer Older
1 2 3 4 5 6
#####################
# Change Author: JBM
# Change Date: 2006-01-17
# Change: added order by in select
##################### 

monty@mysql.com's avatar
monty@mysql.com committed
7
connect (master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
8
connect (slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
sasha@mysql.sashanet.com's avatar
fixed  
sasha@mysql.sashanet.com committed
9 10 11
connection master;
reset master;
show master status;
12
save_master_pos;
sasha@mysql.sashanet.com's avatar
fixed  
sasha@mysql.sashanet.com committed
13 14
connection slave;
reset slave;
15
source include/show_slave_status.inc;
16

sasha@mysql.sashanet.com's avatar
fixed  
sasha@mysql.sashanet.com committed
17
change master to master_host='127.0.0.1';
18
# The following needs to be cleaned up when change master is fixed
19
source include/show_slave_status.inc;
20
--replace_result $MASTER_MYPORT MASTER_PORT
sasha@mysql.sashanet.com's avatar
sasha@mysql.sashanet.com committed
21 22
eval change master to master_host='127.0.0.1',master_user='root',
 master_password='',master_port=$MASTER_MYPORT;
23
source include/show_slave_status.inc;
24
start slave;
25
sync_with_master;
26
source include/show_slave_status.inc;
sasha@mysql.sashanet.com's avatar
fixed  
sasha@mysql.sashanet.com committed
27
connection master;
28
--disable_warnings
29
drop table if exists t1;
30
--enable_warnings
31
create table t1 (n int, PRIMARY KEY(n));
32
insert into t1 values (10),(45),(90);
33
sync_slave_with_master;
34
connection slave;
35
SELECT * FROM t1 ORDER BY n;
36
connection master;
37
SELECT * FROM t1 ORDER BY n;
38
drop table t1;
39
sync_slave_with_master;