Error While Configuring Data-Out Replication on Azure MySQL Flexible Server (Error 1227 on Replica) to Digital Ocean MySQL

Henry Le 0 Reputation points
2025-04-17T15:13:12.9633333+00:00

Dear Everyone,

I am reaching out for assistance with configuring Data-out replication from an Azure Database for MySQL – Flexible Server instance to an external DigitalOcean Managed MySQL replica.

We are following the Microsoft documentation for outbound replication setup: 📄 Configure Data-Out Replication – Azure MySQL Flexible Server


⚠️ Issue Summary

The replication setup fails at the step:

Configure the replica server to start Data-out replication

We attempted the following command on the DigitalOcean replica server:


CHANGE REPLICATION SOURCE TO   
  SOURCE_HOST='test.mysql.database.azure.com',   
  SOURCE_USER='replica_user',   
  SOURCE_PASSWORD='***',   
  SOURCE_LOG_FILE='mysql-bin.000001',   
  SOURCE_LOG_POS=899; 

However, this results in the following MySQL error:


Error Code: 1227. Access denied; you need (at least one of) the SUPER or REPLICATION_SLAVE_ADMIN privilege(s) for this operation

We believe this indicates that the replica server requires elevated privileges on the Azure source, which are currently not available due to platform restrictions.


🔧 Configuration Details

MySQL Version: 8.0

Tier: General Purpose (D2ads_v5)

Specs: 2 vCores, 8 GiB RAM, 40 GiB storage, 420 IOPS


✅ Objective

Our goal is to enable cross-cloud MySQL replication, with the Azure server acting as the source, and a DigitalOcean Managed MySQL server acting as the replica.


🙏 Request for Support

We would appreciate your guidance on the following points:

Does Azure MySQL Flexible Server support outbound replication to third-party external replicas (e.g., DigitalOcean)?

If so, how can we grant the required REPLICATION_SLAVE_ADMIN or SUPER privileges to the replication user to support the CHANGE REPLICATION SOURCE TO (or legacy CHANGE MASTER TO) command on the replica server?

If this use case is not supported, are there any recommended alternatives to replicate data from Azure MySQL to an external service?

We aim to implement a near real-time or low-latency replication stream from Azure to DigitalOcean and would prefer binary log replication if feasible.


Please let us know if any additional information or logs are needed to assist with the investigation.

Thank you very much for your time and support

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.