I have to setup a MySQL slave on an other infrasctructure. It will become the Master once that other infrasctructure is ready.
Mysql 5.6.29 Slave A in old infrasctructure Slave B in new one
I dumped the Slave A database by performing a STOP SLAVE;
, FLUSH TABLES WITH READ LOCK
then the mysqldump
and restarted the slave with START SLAVE
.
I've now a perfect dump of my slave A with the master binlog and its position.
I dumped the dump into the Slave B and setup the correct binlog and position for the replication.
Once started, the Slave B couldn't find the binlog. But they are all in the right /var/lib/mysql
folder on the Slave A. When I say they are all there I mean I put them myself in the folder in fact, otherwise they are deleted (I don't know why).
I really don't understand what I'm missing here.
log-slave-updates
is ON on the Slave A
Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'
Is both Mysql but Slave A is on Debian and the other in AWS RDS MySQL. I cannot check the my.cnf of the AWS RDS. @RolandoMySQLDBA suggests something: dba.stackexchange.com/questions/87002/…