I was fixing MySQL replication on a slave this past week. Everything seemed to be ready to go after bringing data over from the master manually. I went to connect the slave to the master and nothing happened. Whaaaaaa?
|
|
Let me look up MySQL error code 1045:
|
|
That’s not helpful. After some additional testing I realized the password might be too long. Sure enough, the CHANGE MASTER TO syntax guide states MASTER_PASSWORD has a maximum length of 32 characters (despite the MySQL client having a longer limit).
It’s annoying that this limit exists and the error 1045 message isn’t clearer about it. Hopefully you found this very early on in your search for an answer.