Failed to connect from slave to master with error "error connecting to master (1045)"
- by Victor Lin
I try to setup replication from slave to the master.
CHANGE MASTER TO
MASTER_HOST = 'master',
MASTER_PORT = 3306,
MASTER_USER = 'repl',
MASTER_PASSWORD = 'xxx';
And I did grant privileges to the user on master. I can connect with mysql command from slave machine to the master
mysql -h master -u repl -p
mysql> show grants;
GRANT…