ó n[Qc @s˘dZddlZddlZddlmZddlmZddlmZm Z ddlm Z m Z ddl m Z ddlmZdd lmZd Zd Zd Zeejjejd ƒeeeeƒZejddddddddddddƒejddddddddddddƒe eƒejdddddedd dd!ƒejd"dddd#dddd$ƒejd%dddd&dddd'ddƒejd(dddd)dd*dd+ddƒejd,d-dddedd.dd/ƒe eƒejƒ\ZZyeej deƒZ!Wnej"d0ƒnXyeej#deƒZ$Wnej"d1ƒnXee!e$ƒrĽej"d2ƒnej%d krÓej&dkrÓej"d3ƒnej%d ksńej&dk r ej'r ej"d4ƒniej(d56ej)d 6ed66ej&d&6ej%d)6ej'd.6Z*y"e e!e$ej+e*ej,ƒZ-Wn)ek r–Z.d7Ge.j/GHe0d8ƒnXe0ƒdS(9sz This file contains the replicate utility. It is used to establish a master/slave replication topology among two servers. i˙˙˙˙N(t UtilError(tsetup_common_options(tparse_connectiont add_rpl_user(t add_verbositytcheck_verbosity(tsetup_replication(tcheck_hostname_alias(t VERSION_FRMs!MySQL Utilities - mysqlreplicate s4mysqlreplicate - establish replication with a mastersU%prog --master=root@localhost:3306 --slave=root@localhost:3310 --rpl-user=rpl:passwd is--mastertactiontstoretdesttmasterttypetstringtdefaultsroot@localhost:3306thelps,connection information for master server in s]the form: [:]@[:][:] or [:][:].s--slavetslaves+connection information for slave server in s-ps --pedantict store_truetpedantics6fail if storage engines differ among master and slave.s --test-dbttest_dbs=database name to use in testing replication setup (optional)s--master-log-filetmaster_log_files/use this master log file to initiate the slave.s--master-log-postmaster_log_postints?use this position in the master log file to initiate the slave.s-bs--start-from-beginningtfrom_beginnings‰start replication from the first event recorded in the binary logging of the master.Not valid with --master-log-file or --master-log-pos.s5Master connection values invalid or cannot be parsed.s4Slave connection values invalid or cannot be parsed.s0The master and slave are the same host and port.sNYou must specify a master log file to use the master log file position option.siThe --start-from-beginning option is not valid in combination with --master-log-file or --master-log-pos.t verbositytquietsERROR:i(1t__doc__tos.pathtostsystmysql.utilities.exceptionRtmysql.utilities.common.optionsRRRRRt!mysql.utilities.command.setup_rplRtmysql.utilities.common.serverRtmysql.utilitiesRtNAMEt DESCRIPTIONtUSAGEtpathtbasenametargvtTruetFalsetparsert add_optiontNonet parse_argstopttargsR tm_valuesterrorRts_valuesRRRRRtoptionstrpl_userRtresteterrmsgtexit(((s&..\utilities\scripts\mysqlreplicate.pyts†