Migrating a MySQL Database to RDS for MySQL or Aurora MySQL - Database Migration Guide
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Migrating a MySQL Database to RDS for MySQL or Aurora MySQL

You can use these two main approaches for migrating a self-managed MySQL database to an Amazon RDS for MySQL or Amazon Aurora MySQL database.

  • Use a native or third-party database migration tool such as mysqldump to perform the full load and MySQL replication to perform ongoing replication. Typically this is the simplest option.

  • Use a managed migration service such as the Amazon Database Migration Service (Amazon DMS). Amazon DMS provides migration-specific services such as data validation that are not available in the native or third-party tools.

The following diagram displays these two approaches.

Different approaches to MySQL database migration to Amazon RDS for MySQL

You can use a hybrid strategy that combines native or third-party tools for full load and Amazon DMS for ongoing replication. The following diagram displays the hybrid migration approach.

Hybrid migration approach to MySQL database migration to Amazon RDS for MySQL

The hybrid option delivers the simplicity of the native or third-party tools along with the additional services that Amazon DMS provides. For example, in Amazon DMS, you can automatically validate your migrated data, row by row and column by column, to ensure the data quality in the target database. Or, if you are only migrating a subset of the tables, it will be simpler to use Amazon DMS to filter your tables than the equivalent configuration in the native or third-party tools.