~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2011-11-08 11:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20111108113113-3ulw01fvi4vn8m25
Tags: upstream-5.5.17
ImportĀ upstreamĀ versionĀ 5.5.17

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2009 SUN Microsystems
 
2
# All rights reserved. Use is subject to license terms.
 
3
# Author: Horst Hunger
 
4
# Nov. 19, 2009
 
5
# Test of ipv6 format, especially "change master host=..."
 
6
# Options: --skip-name-resolve, --bind-address=:: (see corresponding cnf file)
 
7
# for master and slave.
 
8
#
 
9
--source include/check_ipv6.inc
 
10
# Can't be tested with windows due to mixed format like 0::0000:FFFF:127.0.0.1
 
11
--source include/not_windows.inc
 
12
--source include/have_log_bin.inc
 
13
 
 
14
let $IPv6= ::1;
 
15
--echo #################### IP: $IPv6 ###########################
 
16
--source include/rpl_ipv6.inc
 
17
 
 
18
let $IPv6= ::1/128;
 
19
#--echo #################### IP: $IPv6 ###########################
 
20
#--source include/rpl_ipv6.inc
 
21
 
 
22
let $IPv6= 0000:0000:0000:0000:0000:0000:0000:0001;
 
23
--echo #################### IP: $IPv6 ###########################
 
24
--source include/rpl_ipv6.inc
 
25
 
 
26
let $IPv6= 0:0:0:0:0:0:0:1;
 
27
--echo #################### IP: $IPv6 ###########################
 
28
--source include/rpl_ipv6.inc
 
29
 
 
30
let $IPv6= ::1;
 
31
--echo #################### IP: $IPv6 mix #######################
 
32
--echo connect (master,127.0.0.1,root,,test,MASTER_MYPORT);
 
33
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT);
 
34
--echo connect (slave,127.0.0.1,root,,test,SLAVE_MYPORT);
 
35
connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT);
 
36
--echo connection master;
 
37
connection master;
 
38
reset master;
 
39
source include/show_master_status.inc;
 
40
save_master_pos;
 
41
--echo connection slave;
 
42
connection slave;
 
43
reset slave;
 
44
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
 
45
--echo Master-Host: $master_host
 
46
eval change master to master_host='$IPv6';
 
47
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
 
48
--echo Master-Host: $master_host
 
49
eval change master to master_host='127.0.0.1';
 
50
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
 
51
--echo Master-Host: $master_host
 
52
eval change master to master_host='0:0:0:0:0:0:0:1';
 
53
let $master_host= query_get_value(SHOW SLAVE STATUS, Master_Host, 1);
 
54
--echo Master-Host: $master_host
 
55
 
 
56
# clean up
 
57
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root';