I'm starting to suspect this is some sort of bug. Every time I stop a slave and then restart it, it fails to connect with the master, with this error message showing:
error connecting to master replica@belem.cidades.gov.br:3306 - retry-time: 60 retries: 2
To notice, I can connect to the mysql server using the replication user, with the mysql command, from the slave host. After I do this, the slave connects. What exactly is going on that this kind of thing happens? Is it really a bug or some sort of feature that's not working properly?