add_verbosity(parser, True) # Add engine options add_engines(parser) # Add locking options add_locking(parser) # Add regexp add_regexp(parser) # Replication user and password add_rpl_user(parser, None) # Add replication options but don't include 'both' add_rpl_mode(parser, False, False) # Now we process the rest of the arguments. opt, args = parser.parse_args() try: skips = check_skip_options(opt.skip_objects) except UtilError, e: print "ERROR: %s" % e.errmsg exit(1) # Fail if no options listed. if opt.destination is None: parser.error("No destination server specified.") # Fail if no db arguments or all
add_skip_options(parser) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add regexp add_regexp(parser) # Add locking add_locking(parser) # Replication user and password add_rpl_user(parser) # Add replication options add_rpl_mode(parser) parser.add_option("--skip-gtid", action="store_true", default=False, dest="skip_gtid", help="skip creation of GTID_PURGED " "statements.") # Add comment replication output parser.add_option("--comment-rpl", action="store_true", default=False, dest="comment_rpl", help="place the replication " "statements in comment statements. Valid only with " "--rpl option.") parser.add_option("--skip-fkey-checks", action="store_true", default=False, dest="skip_fkeys", help="skip creation of foreign key " "disable/enable statements.")
add_skip_options(parser) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add regexp add_regexp(parser) # Add locking add_locking(parser) # Replication user and password add_rpl_user(parser, None) # Add replication options add_rpl_mode(parser) parser.add_option("--skip-gtid", action="store_true", default=False, dest="skip_gtid", help="skip creation of GTID_PURGED " "statements.") # Add comment replication output parser.add_option("--comment-rpl", action="store_true", default=False, dest="comment_rpl", help="place the replication statements " "in comment statements. Valid only with --rpl option.")
add_verbosity(parser, True) # Add engine options add_engines(parser) # Add locking options add_locking(parser) # Add regexp add_regexp(parser) # Replication user and password add_rpl_user(parser, None) # Add replication options but don't include 'both' add_rpl_mode(parser, False, False) # Add option to skip GTID generation parser.add_option("--skip-gtid", action="store_true", default=False, dest="skip_gtid", help="skip creation and execution of " "GTID statements during copy.") # Now we process the rest of the arguments. opt, args = parser.parse_args() try: skips = check_skip_options(opt.skip_objects) except UtilError: