Migrating a MariaDB Database to Amazon RDS for MySQL or Amazon 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 MariaDB Database to Amazon RDS for MySQL or Amazon Aurora MySQL

You can migrate data from existing on-premises MariaDB or Amazon RDS for MariaDB to Amazon Aurora MySQL using Database Migration Service. Amazon Aurora is a MySQL and PostgreSQL-compatible relational database built for the cloud. Amazon Aurora features a distributed, fault-tolerant, self-healing storage system that auto-scales up to 64 TB per database instance. It delivers high performance and availability with up to 15 low-latency read replicas, point-in-time recovery, and continuous backup to Amazon S3, and replication across three Availability Zones (AZs).

Some key features offered by Aurora MySQL are the following:

  • High throughput with low latency

  • Push-button compute scaling

  • Storage autoscaling

  • Custom database endpoints

  • Parallel queries for faster analytics

In the following sections, we demonstrate migration from MariaDB as a source database to an Aurora MySQL database as a target using Amazon DMS. At a high level, the steps involved in this migration are:

  • Provision MariaDB as a source DB instance and load the data

  • Provision Aurora Mysql as target DB instance

  • Provision DMS replication instance and create DMS endpoints

  • Create DMS task, migrate data and perform validation

For the purpose of this section, we are using the Amazon CloudFormation templates for creating Amazon RDS for MariaDB, Aurora MySQL database and Amazon DMS replication instance with their source and endpoints. We will be loading sample tables and data in MariaDB located on GitHub.

To estimate what it will cost to run this walkthrough on Amazon, you can use the Amazon Pricing Calculator. For more information, see https://calculator.aws/.