Home icon

Create a fallback migration plan for your self-managed MySQL database to Amazon Aurora MySQL using native bi-directional binary log replication

Database Blog



This article provides a step-by-step guide on how to set up bi-directional replication between an on-premises MySQL instance and an Amazon Aurora MySQL instance. It covers three potential use cases for bi-directional replication: simplified fallback plan for migration, incremental multi-tenant migration, and separate migration of applications using mutually exclusive tables or schemas.

Specifically, the article covers:

  • Enabling binary logs on the on-premises MySQL instance
  • Creating a custom Aurora parameter group to enable binary logs
  • Backing up the source database using Percona Xtrabackup and restoring to Aurora
  • Configuring bi-directional replication between the on-premises MySQL and Aurora MySQL instances
  • Validating replication status and monitoring replication lag
  • Testing bi-directional replication during an Aurora high availability failover event

The article concludes by emphasizing that bi-directional replication can provide flexibility and reduced risk when migrating to Amazon Aurora MySQL, and encourages readers to explore the other capabilities of Amazon Aurora MySQL.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 23
2025
Migrate a self-managed MySQL database to Amazon Aurora MySQL using AWS DMS homogeneous data migrations
Aug 5
2024
Migrate an on-premises MySQL database to Amazon Aurora MySQL over a private network using AWS DMS homogeneous data migration and Network Load Balancer
Mar 11
2026
Migrate Cloud SQL for MySQL to Amazon Aurora and Amazon RDS for MySQL Using AWS DMS
Aug 6
2024
Implement a rollback strategy after an Amazon Aurora MySQL blue/green deployment switchover

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.