---
title: How to Migrate Amazon RDS for MySQL to Vultr Managed Databases for MySQL
url: https://docs.vultr.com/how-to-migrate-amazon-rds-for-mysql-to-vultr-managed-databases-for-mysql
description: Learn how to seamlessly migrate your Amazon RDS for MySQL database to Vultr Managed Databases for MySQL with our step-by-step guide and best practices.
publish_date: 2025-04-17T15:18:53.207729Z
last_updated: 2026-09-24T20:58:41.634555Z
author: Angel Twumasi
header_image: https://docs.vultr.com/public/doc-assets/2152/23f44b81-efcc-4924-a313-447fbc77f17a.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Managed database services offer scalable, reliable, and secure database solutions without the complexity of self-management. Vultr Managed Databases for MySQL offers a cost-effective solution with predictable pricing, automated backups, and seamless integration with other Vultr services. Amazon RDS for MySQL is a popular managed database service, while Vultr Managed Databases for MySQL offer better functionality with competitive pricing and a developer-friendly interface, enabling you to focus on building applications rather than managing infrastructure.

Follow this guide to migrate Amazon RDS MySQL Databases to Vultr Managed Databases for MySQL with minimal downtime.

## Prerequisites

Before you begin, you need to:

* Have access to an existing Amazon RDS MySQL Database.
* Provision a [Vultr Managed Databases for MySQL Cluster](https://docs.vultr.com/products/managed-database/mysql/provisioning) with the same MySQL version, and a similar or higher size as your source Amazon RDS MySQL Database.
* Install MySQL Workbench or the [`mysql` client tool on your workstation](https://docs.vultr.com/how-to-install-mysql-on-ubuntu-24-04)).

## Allow Network Connections to the Source Amazon RDS MySQL Database

Amazon RDS Databases only accept VPC connections by default. Follow the steps below to allow network connections from your management workstation's public IP address to avoid connectivity issues during migration.

1. Navigate to the Amazon RDS Console.

    ![Open RDS Console](https://docs.vultr.com/public/doc-assets/2152/b7b7b42d-1008-4dd7-b2ea-dd47fba22b5f.png)

1. Open your target RDS instance.
1. Under the Connectivity & Security tab, locate the VPC security groups section.
1. Select the security group linked to your RDS instance.
1. Edit the Inbound rules and allow access from your public IP (**0.0.0.0/0** for unrestricted access, or specify your workstation's IP).

## Back Up the Source Amazon RDS MySQL Database

Before migrating your MySQL database from Amazon RDS to Vultr, create a backup of your Amazon RDS database. This ensures you have a restore point in case of any errors during migration. You can back up your Amazon RDS MySQL database using the `mysqldump` command-line utility or the AWS Management Console. Follow the steps below to back up your source Amazon RDS database using the `mysqldump` utility that allows you to export the database schema and data into a SQL file.

1. Log in to your source Amazon RDS MySQL database using the `mysql` connection string. Enter your RDS password when prompted.

    ```console
    $ mysql -h <aws-rds-endpoint> -u <aws-rds-username> -p
    ```

1. List all available databases and note the target databases to migrate.

    ```sql
    mysql> SHOW DATABASES;
    ```

    Your output should be similar to the one below.

    ```
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    | sys                |
    | testmigrationdb    |
    +--------------------+
    5 rows in set (0.21 sec)
    ```

1. Exit the MySQL console.

    ```sql
    mysql> EXIT;
    ```

1. Back up all databases in your source Amazon RDS instance to a single `all-databases-backup.sql` file. Replace `<aws-rds-endpoint>` and `<username>` with your actual Amazon RDS instance details.

    ```console
    $ mysqldump -h  <aws-rds-endpoint> \
    -u <username> -p --all-databases --set-gtid-purged=OFF \
    --single-transaction --triggers > all-databases-backup.sql
    ```

    * Use the following command to backup a specific database to a single `.sql` file.

        ```console
        $ mysqldump -h  <aws-rds-endpoint> \
        -u <username> -p <database-name> --set-gtid-purged=OFF \
        --single-transaction --triggers > <backup-name.sql> 
        ```

1. List files in your working directory and verify that the `all-databases-backup.sql` is available when the backup is successful.

    ```console
    $ ls -lh all-databases-backup.sql
    ```

1. Compress the backup file with `gzip` for improved file transfer.

    ```console
    $ gzip all-databases-backup.sql
    ```

## Migrate the Amazon RDS MySQL Database to Vultr Managed Databases for MySQL

You can migrate the source Amazon RDS MySQL database to your destination Vultr Managed Databases for MySQL using two methods, live replication and backup restoration. The Vultr Console, and MySQL Workbench to perform a live migration of all databases to your Vultr Managed Databases for MySQL cluster. Follow the steps below to migrate the source Amazon RDS MySQL using the Vultr Console or MySQL Workbench.

1. Log in to the Vultr Console.
1. Click **Products** and select **Databases**.
1. Click your target Vultr Managed Databases for MySQL to open its management page.
1. Verify the access credentials within the **Connection Details** section to use when migrating to the Vultr Managed Databases for MySQL cluster.

    ![Verify the destination cluster credentials](https://docs.vultr.com/public/doc-assets/2152/33702c34-9bca-4f92-9741-6eec7a3f02c2.png)

???+ note "Using the Vultr Console"

    Follow the steps below to migrate your source RDS database using the Vultr Console.

    1. Log in to the [Vultr Console](https://console.vultr.com/).
    1. Click **Products** and select **Databases**.
    1. Click your target Vultr Managed Databases for MySQL cluster to open its management page.
    1. Navigate to the **Migration** tab.

        ![Vultr Migration Tab](https://docs.vultr.com/public/doc-assets/2152/f781c319-109e-49b9-bd12-12f72692c1d4.png)

    1. Enter your source Amazon RDS database connection details in the respective fields.

        ![image](https://docs.vultr.com/public/doc-assets/2152/f26ea9f7-5d0e-46c3-80d2-f72196a47ead.png)

    1. Click **Test Connection** to validate your connection details.
    1. Click **Begin Migration** when the connection is successful.
    1. Wait for the migration process to complete and verify that a confirmation message displays in your cluster's management page.
    1. Navigate to the **Users and Databases** tab and verify that your migrated database is available in the **Databases** section.

        ![Migrated Database](https://docs.vultr.com/public/doc-assets/2152/04e58eb4-8c4f-4fcb-9769-c4f22d0dd778.png)

    1. Navigate back to the **Migration** tab and detach the Amazon RDS connection from Vultr after migrating all databases.

??? note "Using MySQL Workbench"

    Follow the steps below to migrate your source Amazon RDS Database to a Vultr Managed Databases for MySQL cluster.

    1. Download and [install MySQL Workbench](https://www.mysql.com/products/workbench/) on your workstation if it's not already installed.
    1. Open MySQL Workbench.
    1. Click **Migration** on the left navigation menu.

        ![image](https://docs.vultr.com/public/doc-assets/2152/1af6b462-5089-4011-9268-802e080222d8.png)

    1. Click **Start Migration** at the bottom of the **Overview** section.
    1. Enter the following details on the **Source Selection page** in MySQL Workbench.
    1. Keep `MySQL` as the database system, `Standard (TCP/IP)` as the connection method.
    1. Enter your source Amazon RDS database details in the parameters section, including the following.

        * **Hostname**: `<aws-rds-endpoint>`
        * **Username**: `<aws-rds-username>`
        * **Port**: `<aws-rds-db-port>`

        Replace `<aws-rds-endpoint>`, `<aws-rds-username>`, and `<aws-rds-db-port>` with your Amazon RDS instance's **endpoint**, **username** and **port** respectively.

    1. Click **Store in Vault**, enter your Amazon RDS database password and click **OK** to save it.

        ![Workbench-login](https://docs.vultr.com/public/doc-assets/2152/905a2530-eac0-4671-ac83-fa5c85471418.png)

    1. Click **Test Connection** to test the connection to your RDS instance.
    1. Click **Next** to proceed to target selection.
    1. Keep `Standard (TCP/IP)` as the connection method and enter your destination Vultr Managed Databases for MySQL credentials in the respective fields.

        ![MySQL Workbench Target Selection](https://docs.vultr.com/public/doc-assets/2152/c8e62fbe-303c-46d7-8abf-8809d7fc7ec5.png)

    1. Click **Store in Vault**, enter your Vultr Managed Databases for MySQL password and click **OK** to save it.
    1. Click **Test Connection** to test the connection to your Vultr Managed Databases for MySQL.
    1. Click **Next** when the test connection is successful.
    1. Select all your target databases from the `Schemas Selection` list to migrate.

        ![Database Selection](https://docs.vultr.com/public/doc-assets/2152/cd04c43e-df74-4d6f-a5fa-aadcd41cd1b6.png)

    1. Click **Next** to map the tables, columns, constraints, and relationships for documentation and migration planning.
    1. Keep the default selections in the **Object Migration** section and keep `Migrate Table Objects` selected.

        ![Object Migration](https://docs.vultr.com/public/doc-assets/2152/20114229-2442-47d5-80ab-7e0c30b4794c.png)

    1. Click **Next** to navigate to the **Manual Editing** options and verify any migration issues.
    1. Click **Next** to access the **Target Creation Options**.
    1. Check the **Create schema in target RDMS** and **Create a SQL script file** options to create an SQL script file.
    1. Check the **Keep schemas if they already exist** option and click **Next** to start the migration process.

        ![Target Creation Review](https://docs.vultr.com/public/doc-assets/2152/079b1fda-171d-4208-a5a9-283c829767dd.png)

    1. When the migration is successful, click **Next** to specify the data transfer options.
    1. Keep the **Online copy of table data to target RDMS** checked and click **Next** to keep a copy of the migration in your Vultr Managed Databases for MySQL cluster.
    1. Verify the migration report and click **Finish** to close the migration window.

## Test the Vultr Managed Databases for MySQL

It's important to verify the migrated data on your destination Vultr Managed Databases for MySQL and transfer any missing databases from your source Amazon RDS Databases. This ensures that all databases are migrated and your destination cluster is functional before cutting over existing applications. Follow the steps below to test the Vultr Managed Databases for MySQL cluster and verify that the migration is successful.

1. Log in to your Vultr Managed Databases for MySQL using the `mysql` connection string and enter your password when prompted.

    ```console
    $ mysql -h <vultr-database-host> -P <vultr-database-port> -u vultradmin -p
    ```

    Replace the following example entries in the above command:

    * `<vultr-database-host>` with your Vultr Managed Databases for MySQL hostname.
    * `<vultr-database-port>` with your Vultr Managed Databases for MySQL port.
    * `vultradmin` with your Vultr Managed Databases for MySQL username.

1. Check the MySQL database version and verify that it matches your source Amazon RDS database version.

    ```sql
    mysql> SELECT @@version;
    ```

    Your output should be similar to the one below.

    ```
    +-----------+
    | @@version |
    +-----------+
    | 8.0.35    |
    +-----------+
    1 row in set (0.17 sec)
    ```

1. List all available databases and verify that they match with your source Amazon RDS databases.

    ```sql
    mysql> SHOW DATABASES;
    ```

    Your output should be similar to the one below.

    ```
    +--------------------+
    | Database           |
    +--------------------+
    | defaultdb          |
    | information_schema |
    | mysql              |
    | performance_schema |
    | sys                |
    | testmigrationdb    |
    +--------------------+
    6 rows in set (0.13 sec)
    ```

1. Switch to any of the migrated databases, such as `testmigrationdb`.

    ```sql
    mysql> USE testmigrationdb;
    ```

1. List all tables in the database and verify the schema structure.

    ```sql
    mysql> SHOW TABLES;
    ```

    Your output should be similar to the one below.

    ```
    +---------------------------+
    | Tables_in_testmigrationdb |
    +---------------------------+
    | employees                 |
    +---------------------------+
    ```

1. Run the following query to count the number of rows in a table and verify that they match with your source RDS database. Replace `employees` with your actual table name.

    ```sql
    mysql> SELECT COUNT(*) FROM employees;
    ```

    Your output should be similar to the one below.

    ```
    +----------+
    | COUNT(*) |
    +----------+
    |    10000 |
    +----------+
    ```

1. Exit the MySQL console.

    ```sql
    mysql> EXIT;
    ```

## Cutover Applications to the Vultr Managed Databases for MySQL

Follow the recommendations below when cutting over applications to your Vultr Managed Databases for MySQL cluster.

* Cutover WordPress Applications:

    1. Navigate to the WordPress installation directory.

        ```console
        $ cd /path/to/wordpress/directory/
        ```

    1. Create a backup of the configuration file to ensure safe rollback in case of any issues.

        ```console
        $ sudo cp wp-config.php wp-config.ORIG
        ```

    1. Open the configuration file using a text editor such as `nano`.

        ```console
        $ sudo nano wp-config.php
        ```

    1. Update database credentials. Locate the following section and replace the values with your Vultr Managed Databases for MySQL credentials.

        ```php
        /** The name of the database for WordPress */
        define('DB_NAME', '<example-wordpress-db>');

        /** MySQL database username */
        define('DB_USER', '<example-user>');

        /** MySQL database password */
        define('DB_PASSWORD', '<example-password>');

        /** MySQL hostname */
        define( 'DB_HOST', '<vultr-database-host>');

        /** MySQL port */
        define( 'DB_PORT', '<vultr-database-port>');
        ```

        Replace the following values:

        * `<example-wordpress-db>` with the database name in your Vultr Managed Databases cluster.
        * `<example-user>` with the appropriate database username.
        * `<example-password>` with the password of your database user.
        * `<vultr-database-host>` with the host of your Vultr Managed Databases for MySQL cluster.
        * `<vultr-database-port>` with the Vultr Managed Databases for MySQL cluster port.

        Save and close the file.

    1. Restart the web server to apply the configuration changes. The command may vary depending on the web server and Linux distribution in use.

        For Apache:

        * On Debian-based systems (Ubuntu, Debian):

            ```console
            $ sudo systemctl restart apache2
            ```

        * On RHEL-based systems (CentOS, Rocky Linux, AlmaLinux):

            ```console
            $ sudo systemctl restart httpd
            ```

        For Nginx:

        * On all major distributions:

            ```console
            $ sudo systemctl restart nginx
            ```

        If your system uses an alternative init system, such as SysVinit or OpenRC, use the appropriate restart command. Refer to your distribution’s documentation for more information.

* Dockerize the application cutover:

    If your application runs within a Docker container, you'll need to update the database connection settings in the Docker Compose file.

    1. Open your `docker-compose.yaml` file.

        ```console
        $ sudo nano docker-compose.yaml
        ```

    1. Locate the environment variables that store database connection details and update them with your Vultr Managed Databases for MySQL credentials.
    1. Update the database connection variables with your Vultr Managed Databases for MySQL credentials.

        ```yaml
        services:
            your-app:
                environment:
                    MYSQL_HOST: "<vultr-database-host>"
                    MYSQL_USER: "<example-user>"
                    MYSQL_PASSWORD: "<example-password>"
                    MYSQL_DATABASE: "<example-wordpress-db>"
                    MYSQL_PORT: "<vultr-database-port>"
        ```

        Save and close the file.

    1. Restart the Docker containers to apply the new database settings:

        ```console
        $ sudo docker-compose down && docker-compose up -d
        ```

    For applications built with Node.js, Python, or PHP, visit the respective documentation resources to update the database connection strings using environment variables or configuration files.

## Conclusion

You have migrated your MySQL database from Amazon RDS to a Vultr Managed Databases for MySQL cluster. You migrated the databases with live replication using the Vultr Console and direct backup transfers with MySQL Workbench. Migrating your source database lets you configure existing application to connect to the new Vultr Managed Databases for MySQL cluster. Delete the old Amazon RDS instance to prevent additional costs when the migration to your Vultr Managed Databases for MySQL is successful. Visit the [Vultr Managed Databases for MySQL documentation](https://docs.vultr.com/products/managed-database/mysql) for more information.
