I have a MySQL slave under my full control and a master server where I have only read-only login. Also, logins are different. At some point replication have stopped due to some kind of problem.
I would like to use pt-table-sync (https://www.percona.com/doc/percona-toolkit/2.2/pt-table-sync.html) to restore sync between master and slave. However, by default it tries to use same credentials for master and slave. I use --sync-to-master (so it requires only one DSN from command line and attempts to apply its user/password to master that is found out from the slave DB)
How I can tell pt-table-sync to use different credentials to slave and master?