~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_000015.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_log_bin.inc
 
2
#####################
 
3
# Change Author: JBM
 
4
# Change Date: 2006-01-17
 
5
# Change: added order by in select
 
6
##################### 
 
7
 
 
8
connect (master,localhost,root,,test,$MASTER_MYPORT,$MASTER_MYSOCK);
 
9
connect (slave,localhost,root,,test,$SLAVE_MYPORT,$SLAVE_MYSOCK);
 
10
connection master;
 
11
reset master;
 
12
source include/show_master_status.inc;
 
13
save_master_pos;
 
14
connection slave;
 
15
reset slave;
 
16
source include/show_slave_status2.inc;
 
17
 
 
18
 
 
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;
 
26
start slave;
 
27
sync_with_master;
 
28
source include/show_slave_status2.inc;
 
29
connection master;
 
30
--disable_warnings
 
31
drop table if exists t1;
 
32
--enable_warnings
 
33
create table t1 (n int, PRIMARY KEY(n));
 
34
insert into t1 values (10),(45),(90);
 
35
sync_slave_with_master;
 
36
connection slave;
 
37
SELECT * FROM t1 ORDER BY n;
 
38
connection master;
 
39
SELECT * FROM t1 ORDER BY n;
 
40
drop table t1;
 
41
sync_slave_with_master;