Thesql master slave replication scenario

MySQLmysql-5.5mysql-5.6replication

We are creating a new mysql slave, but for dump we are taking from a backup server which is a slave of current master. Now to enable replication we want to connect it with the master so should I take log position from the master or from the backup server where i took the dump from.

Secondly the new server we have created is 5.6 and old server is 5.5, would there be any replication issues as well ?

Best Answer

If you want to setup slave from another slave steps would be as follows

  • Flush tables with read lock to lock the slave so it should not get updates
  • show slave status\G and note master co-ordinates
  • Take backup now using mysqldump
  • unlock tables to unlock the slave
  • transfer that backup and restore it to new one
  • Hope you have issues grant replication slave on master so need to use change master on the new slave and give co-ordinates noted in step-2

For details regarding master-slave version difference, shouldn't be a big issue but a good idea is to go through MySQL documentation.

Hope it helps