azure for mysql data in replication failure

Ratna Kristiawati 1 Reputation point
2022-03-22T08:25:31.393+00:00
Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.'  

I was trying to set up replication from another cloud provider to azure, but after restoring the initial data, I keep getting an error above. Do you have suggestions about this?

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
715 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Oury Ba-MSFT 16,471 Reputation points Microsoft Employee
    2022-03-22T20:18:11.717+00:00

    Hi @Ratna Kristiawati Thank you for posting your Question on Microsoft Q&A and for using Azure services.

    My understanding is that you are trying to set up a replication from another cloud provider to azure but facing an issue after restoring the initial data. Please let me know if my understanding is not correct.

    The value of gtid_purged should be same as gtid_executed on master for GTID-based replication to work.
    show global variables like 'gtid_executed';
    Please make sure that you have configured the source MySQL server

    Also, there are certain limitations and considerations to take into action before staring the replication.

    185842-image.png
    https://learn.microsoft.com/en-us/azure/mysql/howto-data-in-replication

    Regards,
    Oury