Reading the documentation it looks like if I use --sync-to-master then I specify the slave connection information. I tried it by specifying the master information with the options and the slave as a DSN and it doesn’t look at the slave at all.
Is there a way to explicitly declare --master= --slave= and still have it ask for the password?
I tried replicating your issue to no avail for the moment. What version are you currently using of the percona toolkit. Could you give me the full output of the command? Does the user in place have the right to the see the replication status (replication_client)?
It couldn’t connect to the other host because Perl::DBI needs the socket when the hostname is localhost. I only knew how to pass the socket for one of the connections and not both so it defaulted to /var/lib/mysql/mysql.sock (or what ever the default is) and it doesn’t exist.
When I started using the actual hostname of the server for the connection information the problem went away. But I had to set the hostname everywhere to make it work.
If there are any devs reading, I’d like to request an update to the tools with the following options: