Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PTDEBUG=1 pt-slave-find --defaults-file=master/my.sandbox.cnf --user=root
- # /usr/bin/perl 5.010001
- # Linux perconatest 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
- # Arguments: _[--defaults-file=master/my.sandbox.cnf]_ _[--user=root]_
- # OptionParser:190 6362 Option rule: This tool accepts additional command-line arguments. Refer to the SYNOPSIS and usage information for details.
- # OptionParser:199 6362 =item --ask-pass
- # OptionParser:218 6362 Option has no attributes
- # OptionParser:226 6362 Short help: Prompt for a password when connecting to MySQL
- # OptionParser:199 6362 =item --charset
- # OptionParser:226 6362 Short help: Default character set
- # OptionParser:199 6362 =item --config
- # OptionParser:226 6362 Short help: Read this comma-separated list of config files; if specified, this must be the first option on the command line
- # OptionParser:199 6362 =item --database
- # OptionParser:226 6362 Short help: Database to use
- # OptionParser:199 6362 =item --defaults-file
- # OptionParser:226 6362 Short help: Only read mysql options from the given file
- # OptionParser:199 6362 =item --help
- # OptionParser:218 6362 Option has no attributes
- # OptionParser:226 6362 Short help: Show help and exit
- # OptionParser:199 6362 =item --host
- # OptionParser:226 6362 Short help: Connect to host
- # OptionParser:199 6362 =item --password
- # OptionParser:226 6362 Short help: Password to use when connecting
- # OptionParser:199 6362 =item --pid
- # OptionParser:226 6362 Short help: Create the given PID file
- # OptionParser:199 6362 =item --port
- # OptionParser:226 6362 Short help: Port number to use for connection
- # OptionParser:199 6362 =item --recurse
- # OptionParser:226 6362 Short help: Number of levels to recurse in the hierarchy
- # OptionParser:199 6362 =item --recursion-method
- # OptionParser:226 6362 Short help: Preferred recursion method used to find slaves
- # OptionParser:199 6362 =item --report-format
- # OptionParser:226 6362 Short help: Set what information about the slaves is printed
- # OptionParser:199 6362 =item --set-vars
- # OptionParser:226 6362 Short help: Set these MySQL variables
- # OptionParser:199 6362 =item --socket
- # OptionParser:226 6362 Short help: Socket file to use for connection
- # OptionParser:199 6362 =item --user
- # OptionParser:226 6362 Short help: User for login if not current user
- # OptionParser:199 6362 =item --version
- # OptionParser:218 6362 Option has no attributes
- # OptionParser:226 6362 Short help: Show version and exit
- # OptionParser:265 6362 Parsing opt spec: group => default spec => ask-pass desc => Prompt for a password when connecting to MySQL
- # OptionParser:303 6362 ask-pass type: undef
- # OptionParser:265 6362 Parsing opt spec: group => default spec => charset|A=s desc => Default character set
- # OptionParser:303 6362 charset type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => config=A desc => Read this comma-separated list of config files; if specified, this must be the first option on the command line
- # OptionParser:303 6362 config type: A
- # OptionParser:265 6362 Parsing opt spec: group => default spec => database|D=s desc => Database to use
- # OptionParser:303 6362 database type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => defaults-file|F=s desc => Only read mysql options from the given file
- # OptionParser:303 6362 defaults-file type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => help desc => Show help and exit
- # OptionParser:303 6362 help type: undef
- # OptionParser:265 6362 Parsing opt spec: group => default spec => host|h=s desc => Connect to host
- # OptionParser:303 6362 host type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => password|p=s desc => Password to use when connecting
- # OptionParser:303 6362 password type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => pid=s desc => Create the given PID file
- # OptionParser:303 6362 pid type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => port|P=i desc => Port number to use for connection
- # OptionParser:303 6362 port type: i
- # OptionParser:265 6362 Parsing opt spec: group => default spec => recurse=i desc => Number of levels to recurse in the hierarchy
- # OptionParser:303 6362 recurse type: i
- # OptionParser:265 6362 Parsing opt spec: group => default spec => recursion-method=s desc => Preferred recursion method used to find slaves
- # OptionParser:303 6362 recursion-method type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => report-format=s desc => Set what information about the slaves is printed (default summary)
- # OptionParser:303 6362 report-format type: s
- # OptionParser:310 6362 report-format default: summary
- # OptionParser:265 6362 Parsing opt spec: group => default spec => set-vars=s desc => Set these MySQL variables (default wait_timeout=10000)
- # OptionParser:303 6362 set-vars type: s
- # OptionParser:310 6362 set-vars default: wait_timeout=10000
- # OptionParser:265 6362 Parsing opt spec: group => default spec => socket|S=s desc => Socket file to use for connection
- # OptionParser:303 6362 socket type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => user|u=s desc => User for login if not current user
- # OptionParser:303 6362 user type: s
- # OptionParser:265 6362 Parsing opt spec: group => default spec => version desc => Show version and exit
- # OptionParser:303 6362 version type: undef
- # OptionParser:325 6362 Parsing rule: This tool accepts additional command-line arguments. Refer to the SYNOPSIS and usage information for details.
- # OptionParser:381 6362 Participants for This tool accepts additional command-line arguments. Refer to the SYNOPSIS and usage information for details. :
- # OptionParser:357 6362 Strict mode disabled by rule
- # OptionParser:109 6362 Parsing DSN OPTIONS
- # OptionParser:199 6362 =item * A
- # OptionParser:226 6362 Short help: Default character set
- # OptionParser:199 6362 =item * D
- # OptionParser:226 6362 Short help: Default database
- # OptionParser:199 6362 =item * F
- # OptionParser:226 6362 Short help: Only read default options from the given file
- # OptionParser:199 6362 =item * h
- # OptionParser:226 6362 Short help: Connect to host
- # OptionParser:199 6362 =item * p
- # OptionParser:226 6362 Short help: Password to use when connecting
- # OptionParser:199 6362 =item * P
- # OptionParser:226 6362 Short help: Port number to use for connection
- # OptionParser:199 6362 =item * S
- # OptionParser:226 6362 Short help: Socket file to use for connection
- # OptionParser:199 6362 =item * u
- # OptionParser:226 6362 Short help: User for login if not current user
- # DSNParser:1075 6362 DSN option: copy=1, dsn=charset, desc=Default character set, key=A
- # DSNParser:1075 6362 DSN option: copy=1, dsn=database, desc=Default database, key=D
- # DSNParser:1075 6362 DSN option: copy=1, dsn=mysql_read_default_file, desc=Only read default options from the given file, key=F
- # DSNParser:1075 6362 DSN option: copy=1, dsn=host, desc=Connect to host, key=h
- # DSNParser:1075 6362 DSN option: copy=1, dsn=password, desc=Password to use when connecting, key=p
- # DSNParser:1075 6362 DSN option: copy=1, dsn=port, desc=Port number to use for connection, key=P
- # DSNParser:1075 6362 DSN option: copy=1, dsn=mysql_socket, desc=Socket file to use for connection, key=S
- # DSNParser:1075 6362 DSN option: copy=1, dsn=user, desc=User for login if not current user, key=u
- # OptionParser:153 6362 pt-slave-find 2.0.3
- # OptionParser:465 6362 Cannot open /etc/percona-toolkit/percona-toolkit.conf: No such file or directory
- #
- # OptionParser:465 6362 Cannot open /etc/percona-toolkit/pt-slave-find.conf: No such file or directory
- #
- # OptionParser:465 6362 Cannot open /home/martin/.percona-toolkit.conf: No such file or directory
- #
- # OptionParser:465 6362 Cannot open /home/martin/.pt-slave-find.conf: No such file or directory
- #
- # OptionParser:433 6362 Got option defaults-file = master/my.sandbox.cnf
- # OptionParser:433 6362 Got option user = root
- # OptionParser:653 6362 Nothing to validate for option report-format type s value summary
- # OptionParser:653 6362 Nothing to validate for option recursion-method type s value undef
- # OptionParser:653 6362 Nothing to validate for option password type s value undef
- # OptionParser:653 6362 Nothing to validate for option pid type s value undef
- # OptionParser:653 6362 Nothing to validate for option user type s value root
- # OptionParser:653 6362 Nothing to validate for option charset type s value undef
- # OptionParser:653 6362 Nothing to validate for option port type i value undef
- # OptionParser:653 6362 Nothing to validate for option set-vars type s value wait_timeout=10000
- # OptionParser:653 6362 Nothing to validate for option defaults-file type s value master/my.sandbox.cnf
- # OptionParser:653 6362 Nothing to validate for option host type s value undef
- # OptionParser:653 6362 Nothing to validate for option socket type s value undef
- # OptionParser:653 6362 Nothing to validate for option database type s value undef
- # OptionParser:653 6362 Nothing to validate for option recurse type i value undef
- # DSNParser:1091 6362 Setting set-vars property
- # DSNParser:1162 6362 DSN string made from options: F=master/my.sandbox.cnf,u=root
- # DSNParser:1103 6362 Parsing F=master/my.sandbox.cnf,u=root
- # DSNParser:1121 6362 Finding value for S
- # DSNParser:1131 6362 Copying value for S from defaults
- # DSNParser:1121 6362 Finding value for F
- # DSNParser:1121 6362 Finding value for A
- # DSNParser:1131 6362 Copying value for A from defaults
- # DSNParser:1121 6362 Finding value for P
- # DSNParser:1131 6362 Copying value for P from defaults
- # DSNParser:1121 6362 Finding value for p
- # DSNParser:1131 6362 Copying value for p from defaults
- # DSNParser:1121 6362 Finding value for u
- # DSNParser:1121 6362 Finding value for h
- # DSNParser:1131 6362 Copying value for h from defaults
- # DSNParser:1121 6362 Finding value for D
- # DSNParser:1131 6362 Copying value for D from defaults
- # OptionParser:727 6362 Getting description and usage from SYNOPSIS in /usr/bin/pt-slave-find
- # OptionParser:980 6362 Parsing SYNOPSIS in /usr/bin/pt-slave-find
- # OptionParser:993 6362 Raw SYNOPSIS text: Usage: pt-slave-find [OPTION...] MASTER-HOST
- #
- # pt-slave-find finds and prints a hierarchy tree of MySQL slaves.
- #
- #
- # OptionParser:731 6362 Description: pt-slave-find finds and prints a hierarchy tree of MySQL slaves.
- # Usage: pt-slave-find [OPTION...] MASTER-HOST
- # DSNParser:1212 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;mysql_read_default_group=client
- # DSNParser:1258 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;mysql_read_default_group=client root undef mysql_enable_utf8=>0, ShowErrorStatement=>1, AutoCommit=>1, RaiseError=>1, PrintError=>0
- # DSNParser:1267 6362 DBI::db=HASH(0x18f2568) SELECT @@SQL_MODE
- # DSNParser:1274 6362 DBI::db=HASH(0x18f2568) SET @@SQL_QUOTE_SHOW_CREATE = 1/*!40101, @@SQL_MODE='NO_AUTO_VALUE_ON_ZERO'*/
- # DSNParser:1293 6362 DBI::db=HASH(0x18f2568) : SET wait_timeout=10000
- # DSNParser:1319 6362 DBH info: DBI::db=HASH(0x18f2568) $VAR1 = {'@@hostname' => 'perconatest','VERSION()' => '5.1.61-log','DATABASE()' => undef,'CONNECTION_ID()' => '70416'}; Connection info: Localhost via UNIX socket Character set info: $VAR1 = [{Value => 'latin1',Variable_name => 'character_set_client'},{Value => 'latin1',Variable_name => 'character_set_connection'},{Value => 'latin1',Variable_name => 'character_set_database'},{Value => 'binary',Variable_name => 'character_set_filesystem'},{Value => 'latin1',Variable_name => 'character_set_results'},{Value => 'latin1',Variable_name => 'character_set_server'},{Value => 'utf8',Variable_name => 'character_set_system'},{Value => '/home/martin/opt/mysql/5.1.61/share/charsets/',Variable_name => 'character_sets_dir'}]; $DBD::mysql::VERSION: 4.013 $DBI::VERSION: 1.609
- # MasterSlave:1475 6362 Connected to F=master/my.sandbox.cnf,u=root
- # MasterSlave:1484 6362 SELECT @@SERVER_ID
- # MasterSlave:1486 6362 Working on server ID 1
- # MasterSlave:1530 6362 Looking for slaves on F=master/my.sandbox.cnf,u=root using methods processlist hosts
- # MasterSlave:1537 6362 Finding slaves with _find_slaves_by_processlist
- # VersionParser:2302 6362 5.1.61-log parses to 005001061
- # VersionParser:2302 6362 4.1.2 parses to 004001002
- # VersionParser:2313 6362 005001061 ge 4.1.2 : 1
- # MasterSlave:1604 6362 DBI::db=HASH(0x18f2568) SHOW GRANTS FOR CURRENT_USER()
- # MasterSlave:1634 6362 DBI::db=HASH(0x18f2568) SHOW PROCESSLIST
- # DSNParser:1103 6362 Parsing h=127.0.0.1
- # DSNParser:1121 6362 Finding value for S
- # DSNParser:1131 6362 Copying value for S from defaults
- # DSNParser:1121 6362 Finding value for F
- # DSNParser:1127 6362 Copying value for F from previous DSN
- # DSNParser:1121 6362 Finding value for A
- # DSNParser:1131 6362 Copying value for A from defaults
- # DSNParser:1121 6362 Finding value for P
- # DSNParser:1131 6362 Copying value for P from defaults
- # DSNParser:1121 6362 Finding value for p
- # DSNParser:1131 6362 Copying value for p from defaults
- # DSNParser:1121 6362 Finding value for u
- # DSNParser:1127 6362 Copying value for u from previous DSN
- # DSNParser:1121 6362 Finding value for h
- # DSNParser:1121 6362 Finding value for D
- # DSNParser:1131 6362 Copying value for D from defaults
- # DSNParser:1103 6362 Parsing h=127.0.0.1
- # DSNParser:1121 6362 Finding value for S
- # DSNParser:1131 6362 Copying value for S from defaults
- # DSNParser:1121 6362 Finding value for F
- # DSNParser:1127 6362 Copying value for F from previous DSN
- # DSNParser:1121 6362 Finding value for A
- # DSNParser:1131 6362 Copying value for A from defaults
- # DSNParser:1121 6362 Finding value for P
- # DSNParser:1131 6362 Copying value for P from defaults
- # DSNParser:1121 6362 Finding value for p
- # DSNParser:1131 6362 Copying value for p from defaults
- # DSNParser:1121 6362 Finding value for u
- # DSNParser:1127 6362 Copying value for u from previous DSN
- # DSNParser:1121 6362 Finding value for h
- # DSNParser:1121 6362 Finding value for D
- # DSNParser:1131 6362 Copying value for D from defaults
- # MasterSlave:1542 6362 Found 2 slaves
- # MasterSlave:1508 6362 Recursing from F=master/my.sandbox.cnf,u=root to F=master/my.sandbox.cnf,h=127.0.0.1,u=root
- # DSNParser:1212 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;host=127.0.0.1;mysql_read_default_group=client
- # DSNParser:1258 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;host=127.0.0.1;mysql_read_default_group=client root undef mysql_enable_utf8=>0, ShowErrorStatement=>1, AutoCommit=>1, RaiseError=>1, PrintError=>0
- # DSNParser:1267 6362 DBI::db=HASH(0x18ecbc8) SELECT @@SQL_MODE
- # DSNParser:1274 6362 DBI::db=HASH(0x18ecbc8) SET @@SQL_QUOTE_SHOW_CREATE = 1/*!40101, @@SQL_MODE='NO_AUTO_VALUE_ON_ZERO'*/
- # DSNParser:1293 6362 DBI::db=HASH(0x18ecbc8) : SET wait_timeout=10000
- # DSNParser:1319 6362 DBH info: DBI::db=HASH(0x18ecbc8) $VAR1 = {'@@hostname' => 'perconatest','VERSION()' => '5.1.61-log','DATABASE()' => undef,'CONNECTION_ID()' => '70417'}; Connection info: 127.0.0.1 via TCP/IP Character set info: $VAR1 = [{Value => 'latin1',Variable_name => 'character_set_client'},{Value => 'latin1',Variable_name => 'character_set_connection'},{Value => 'latin1',Variable_name => 'character_set_database'},{Value => 'binary',Variable_name => 'character_set_filesystem'},{Value => 'latin1',Variable_name => 'character_set_results'},{Value => 'latin1',Variable_name => 'character_set_server'},{Value => 'utf8',Variable_name => 'character_set_system'},{Value => '/home/martin/opt/mysql/5.1.61/share/charsets/',Variable_name => 'character_sets_dir'}]; $DBD::mysql::VERSION: 4.013 $DBI::VERSION: 1.609
- # MasterSlave:1475 6362 Connected to F=master/my.sandbox.cnf,h=127.0.0.1,u=root
- # MasterSlave:1484 6362 SELECT @@SERVER_ID
- # MasterSlave:1486 6362 Working on server ID 1
- # MasterSlave:1492 6362 Server ID seen, or not what master said
- # MasterSlave:1508 6362 Recursing from F=master/my.sandbox.cnf,u=root to F=master/my.sandbox.cnf,h=127.0.0.1,u=root
- # DSNParser:1212 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;host=127.0.0.1;mysql_read_default_group=client
- # DSNParser:1258 6362 DBI:mysql:;mysql_read_default_file=master/my.sandbox.cnf;host=127.0.0.1;mysql_read_default_group=client root undef mysql_enable_utf8=>0, ShowErrorStatement=>1, AutoCommit=>1, RaiseError=>1, PrintError=>0
- # DSNParser:1267 6362 DBI::db=HASH(0x18d2560) SELECT @@SQL_MODE
- # DSNParser:1274 6362 DBI::db=HASH(0x18d2560) SET @@SQL_QUOTE_SHOW_CREATE = 1/*!40101, @@SQL_MODE='NO_AUTO_VALUE_ON_ZERO'*/
- # DSNParser:1293 6362 DBI::db=HASH(0x18d2560) : SET wait_timeout=10000
- # DSNParser:1319 6362 DBH info: DBI::db=HASH(0x18d2560) $VAR1 = {'@@hostname' => 'perconatest','VERSION()' => '5.1.61-log','DATABASE()' => undef,'CONNECTION_ID()' => '70418'}; Connection info: 127.0.0.1 via TCP/IP Character set info: $VAR1 = [{Value => 'latin1',Variable_name => 'character_set_client'},{Value => 'latin1',Variable_name => 'character_set_connection'},{Value => 'latin1',Variable_name => 'character_set_database'},{Value => 'binary',Variable_name => 'character_set_filesystem'},{Value => 'latin1',Variable_name => 'character_set_results'},{Value => 'latin1',Variable_name => 'character_set_server'},{Value => 'utf8',Variable_name => 'character_set_system'},{Value => '/home/martin/opt/mysql/5.1.61/share/charsets/',Variable_name => 'character_sets_dir'}]; $DBD::mysql::VERSION: 4.013 $DBI::VERSION: 1.609
- # MasterSlave:1475 6362 Connected to F=master/my.sandbox.cnf,h=127.0.0.1,u=root
- # MasterSlave:1484 6362 SELECT @@SERVER_ID
- # MasterSlave:1486 6362 Working on server ID 1
- # MasterSlave:1492 6362 Server ID seen, or not what master said
- # pt_slave_find:2748 6362 Printing slaves, starting level 0
- # pt_slave_find:2793 6362 level 0 host Localhost
- Localhost
- # MasterSlave:1718 6362 DBI::db=HASH(0x18f2568) SHOW MASTER STATUS
- # MasterSlave:1722 6362 binlog_do_db= position=10364419 file=mysql-bin.000001 binlog_ignore_db=
- # MasterSlave:1694 6362 DBI::db=HASH(0x18f2568) SHOW SLAVE STATUS
- # MasterSlave:1703 6362 This server returns nothing for SHOW SLAVE STATUS
- # VersionParser:2331 6362 InnoDB support: YES
- # VersionParser:2343 6362 InnoDB version: BUILTIN
- Version 5.1.61-log
- Server ID 1
- Uptime 1+20:36:47 (started 2012-06-06T08:40:47)
- Replication Is not a slave, has 2 slaves connected, is not read_only
- Filters
- Binary logging STATEMENT
- Slave status
- Slave mode STRICT
- Auto-increment increment 1, offset 1
- InnoDB version BUILTIN
Add Comment
Please, Sign In to add comment