MySQL replication ‘connecting to master’

MySQLreplicationwindows

Anyone please give detailed documentation on MySQL Replication on Windows system. I replicated master to slave, but it is showing 'connecting to master'. Error number showing as 1045 and 2003 it's varying.

Best Answer

If you have validated the credentials you are using for replication and they work connecting through another client, your 1045 error may lie with the new default authentication plugin in MySQL8. When trying to connect with an insecure connection and an account created with the caching_sha2_password, it will continuously attempt the connection without being successful.

Try connecting using the same replication credentials from the slave to the master through a MySQL client. This will ensure your networking and credentials are both valid. If you cannot do this, check your network/firewall and your replication credentials.