ó n[Qc @sidZddlZddlZddlmZddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZd Zd Zd Zd ZeejjejdƒeeeeƒZejddddddddddddƒejddddddddddddƒejddddd dddd!dd"ƒejd#d$dd%dd&dedd'ƒejd(dddd)dd*dd+deƒejd,dd%dd-dedd.ƒe eeƒejƒ\ZZyeejƒZWnBek r&Z ej!d/ƒn#ek rHZ"ej!e"j#ƒnXyeej$ƒZ%WnBek r~Z ej!d0ƒn#ek r Z"ej!e"j#ƒnXe ee%ƒrÀej!d1ƒniej&d26ed36ej'd46ej(d-6ej)d 6ej*d&6ej+d)6Z,y)e ee%e,ƒZ-e-r1e.d5ƒnWn)ek r]Z d6Ge j#GHe.d5ƒnXe.ƒdS(7sz 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_connection(t add_verbosity(tcheck_hostname_alias(tcheck_replication(t FormatErrors MySQL Utilities - mysqlrplcheck s!mysqlrplcheck - check replications?%prog --master=root@localhost:3306 --slave=root@localhost:3310 iKis--mastertactiontstoretdesttmasterttypetstringtdefaultsroot@localhost:3306thelps,connection information for master server in s]the form: [:]@[:][:] or [:][:].s--slavetslaves+connection information for slave server in s\the form: [:]@[:][:] or [:][:]s--master-info-filet master_infos master.infosàthe name of the master information file on the slave.default = 'master.info' read from the data directory. Note: this option requires that the utility run on the slave with appropriate file read access to the data directory.s--show-slave-statuss-st store_truet slave_statussshow slave statuss--widthtwidthtints display widths --suppresstsuppressssuppress warning messagess5Master 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.t verbositytpedantictquietisERROR:(/t__doc__tos.pathtostsystmysql.utilities.exceptionRtmysql.utilities.common.optionsRRRtmysql.utilities.common.serverRt!mysql.utilities.command.check_rplRRtNAMEt DESCRIPTIONtUSAGEt PRINT_WIDTHtpathtbasenametargvtTruetFalsetparsert add_optiontNonet parse_argstopttargsR tm_valuesteterrorterrterrmsgRts_valuesRRRRRRtoptionstrestexit(((s%..\utilities\scripts\mysqlrplcheck.pyts‚