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
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/
Topics
- Set up MariaDB as a source database
- Set up Aurora MySQL as a target database
- Set up an Amazon DMS replication instance
- Test the endpoints for MariaDB database migration
- Create a migration task for a MariaDB database
- Validate the MariaDB database migration
- Cut over for the migration from a MariaDB database