~chuck-bell/mysql-utilities/mysql-utilities

« back to all changes in this revision

Viewing changes to mysql-test/r/replicate_errors.result

  • Committer: chuck.bell at oracle
  • Date: 2011-09-29 14:14:38 UTC
  • Revision ID: chuck.bell@oracle.com-20110929141438-clzfl7m2769wt2jm
WL#5983 : allow user to specify binary log file and position (mysqlreplicate)

This patch adds new features to mysqlreplicate to permit starting replication
from the beginning, starting from a specific log file, and starting from a
specific log file and position.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
# master on localhost: ... connected.
38
38
# slave on localhost: ... connected.
39
39
ERROR: Slave server_id is set to 0.
 
40
Test case 10 - --master-log-pos but no log file
 
41
Usage: mysqlreplicate.py --master=root@localhost:3306 --slave=root@localhost:3310 --server-id=3 --rpl_user=rpl:passwd 
 
42
 
 
43
mysqlreplicate.py: error: You must specify a master log file to use the master log file position option.
 
44
Test case 11 - --master-log-file and --start-from-beginning
 
45
Usage: mysqlreplicate.py --master=root@localhost:3306 --slave=root@localhost:3310 --server-id=3 --rpl_user=rpl:passwd 
 
46
 
 
47
mysqlreplicate.py: error: The --start-from-beginning option is not valid in combination with --master-log-file or --master-log-pos.
 
48
Test case 12 - --master-log-pos and --start-from-beginning
 
49
Usage: mysqlreplicate.py --master=root@localhost:3306 --slave=root@localhost:3310 --server-id=3 --rpl_user=rpl:passwd 
 
50
 
 
51
mysqlreplicate.py: error: You must specify a master log file to use the master log file position option.
 
52
Test case 13 - --master-log-file+pos and --start-from-beginning
 
53
Usage: mysqlreplicate.py --master=root@localhost:3306 --slave=root@localhost:3310 --server-id=3 --rpl_user=rpl:passwd 
 
54
 
 
55
mysqlreplicate.py: error: The --start-from-beginning option is not valid in combination with --master-log-file or --master-log-pos.