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Qd+s%Y-%m-%d %H:%M:%S %ptversiontprogramit descriptiontusagetadd_help_optiont option_classRs--helptactionthelps --new-mastertstoretdestt new_mastertdefaultttypetstringsŚconnection information for the slave to be used to replace the master for switchover, in the form: [:]@[:][:] or [:][:]. Valid only with switchover command.s--forcet store_truetforces3ignore prerequsite check results and execute actionsIdisplay the output in either grid (default), tab, csv, or vertical formats--demote-mastertdemotes%make master a slave after switchover.s --no-healtht no_healths4turn off health report after switchover or failover.sYOne of these options is required to use the utility: --discover-slaves-login or --slaves.is6You can only specify one command to execute at a time.s&You must specify a command to execute.s5The --timeout option requires a value greater than 0.s/The --timeout option requires an integer value.s'%s' is not a valid command.t switchoversFThe switchover command requires the --master and --new-master options.thealthtgtidsHThe health and gtid commands requires the --master and --slaves options.telecttfailovertstarttstoptresetsGYou must supply a list of slaves or the --discover-slaves-login option.s0You cannot use the --force option with failover.s@WARNING: The --ping option is used only with the health command.s=WARNING: The --exec-* options are used only with the failovers and switchover commands.s7WARNING: The --new-master option is used only with the sswitchover command.s7WARNING: The --candidates option is used only with the sfailover and elect commands.s;WARNING: The --new-master and --candidates options are not s.used with the stop, start, and reset commands.s:WARNING: The --format option is used only with the health sand gtid commands.s9New master connection values invalid or cannot be parsed.sERROR:s<The master and one of the slaves are the same host and port.s@The master and one of the candidates are the same host and port.t candidatesitpingtformatt verbositytbeforetaftert max_positiont max_delaytdiscoverttimeouttquiettloggingtlog_filetrpl_usersError purging log file.tfilenametlevels%%(asctime)s %(levelname)s %(message)stdatefmtsError opening log file: %s(R+R,(R-R.sstartsstopsreset(R*R.(R-R.(sstopsstartsreset(R+R,(Yt__doc__R=toptparsetos.pathtostsystmysql.utilities.exceptionRRtmysql.utilities.common.optionsRRRRRRRtmysql.utilities.common.serverR tmysql.utilities.common.topologyR t!mysql.utilities.command.rpl_adminR R R RRtmysql.utilitiesRt OptionParserRtNAMEt DESCRIPTIONtUSAGEt _DATE_FORMATR4tpathtbasenametargvtFalsetparsert add_optiontNonetTruet parse_argstopttargsR:tslavesterrortmastertlentintR;t ValueErrortlowertcommandR"R'R3t exec_aftert exec_beforeR2tnew_master_valteterrterrmsgt master_valt slaves_valtcandidates_valtexitt slave_valtcand_valR5R8R9R(R<R>R)R?toptionstlog_aget basicConfigtINFOtIOErrortstrtrpl_cmdstexecute_command(((s%..\utilities\scripts\mysqlrpladmin.pyts"    %       *                        % "