---
title: How to Migrate DigitalOcean Managed Databases for MySQL to Vultr Managed Databases for MySQL
url: https://docs.vultr.com/how-to-migrate-digitalocean-managed-databases-for-mysql-to-vultr-managed-databases-for-mysql
description: Learn the step-by-step process to migrate your DigitalOcean Managed MySQL Database to Vultr Managed Database, including preparation, data transfer, and verification.
publish_date: 2025-04-16T15:04:12.278283Z
last_updated: 2026-09-09T22:10:56.675009Z
author: Hitesh Jethva
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/fc1a96a1-983f-433b-851d-0c955047dfa8.png
---

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

Migrating MySQL databases from one host to another allows you to scale existing databases integrate multiple applications. Vultr Managed Databases for MySQL offer a fully-managed cost effective relational database solution and automate most aspects of database administration. Migrating from Digital Ocean Managed Databases for MySQL to Vultr Managed Databases for MySQL enables you to transfer existing databases with minimal downtime and connect with popular client applications.

Follow this guide to migrate DigitalOcean Managed Databases for MySQL to Vultr Managed Databases for MySQL.

## Prerequisites

Before you begin, you need to:

* Have an existing DigitalOcean Managed Databases for MySQL subscription to migrate.
* Provision a [Vultr Managed Databases for MySQL](https://www.vultr.com/products/managed-databases/mysql/) cluster with the same size or greater than your DigitalOcean Managed Databases for MySQL.
* Install [MySQL Client](https://docs.vultr.com/how-to-install-mysql-on-ubuntu-24-04) or [MySQL Workbench](https://downloads.mysql.com/archives/workbench/) on your local workstation.

## Back Up the DigitalOcean Managed Databases for MySQL Cluster

Backing up your source DigitalOcean Managed Databases for MySQL enables you to recover your databases in case of any data corruption or migration failures. Follow the steps below to back up your source DigitalOcean Managed Databases for MySQL cluster using the MySQL client tool on your workstation.

1. Log in to your DigitalOcean account.
1. Navigate to **Databases** and click your target MySQL cluster to open its management page.
1. Verify the access credentials in the **Connection Details** section.

    ![Verify the DO Database credentials](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/85a4d537-604d-45ea-8adb-db7eb1cb8e8a.png)

1. Use the `mysqldump` to export all databases in your source DigitalOcean Managed Databases cluster into a single `migratetovultr.sql` file.

    ```console
    $ mysqldump --host=do-hostname --port=25060 --user=doadmin --password=example-password --all-databases > migratetovultr.sql
    ```

    The above command exports all databases in your source MySQL cluster to a single `migratetovultr.sql` file, allowing you to keep a backup of all databases before migrating to a new cluster.

1. Use the following command to back up specific databases in your cluster. Replace `exampledb` and `exampledb2` with your actual target databases.

    ```console
    $ mysqldump --host=do-hostname --port=25060 --user=doadmin --password=example-password --databases exampledb exampledb2 --single-transaction --set-gtid-purged=OFF > migratetovultr-db.sql
    ```

## Migrate the Source DigitalOcean Managed Databases for MySQL to Vultr Managed Databases for MySQL

You can migrate your existing DigitalOcean Managed Databases for MySQL to Vultr Managed Databases for MySQL using  live replication or backup and restore methods.

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://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/d05ff5d6-a6e0-47bb-85ab-443440d3b681.png)

Follow the steps below to migrate your source DigitalOcean Managed Databases for MySQL using the Vultr Console or MySQL Workbench.

???+ note "Using the Vultr Console"

    Follow the steps below to use the migration feature in your Vultr Managed Databases for MySQL cluster and transfer your source databases with live replication in the Vultr Console.

    1. Open your target Vultr Managed Databases for MySQL cluster's management page.
    1. Navigate to the **Migration** tab.
    1. Enter your source Digital Ocean Managed Databases for MySQL details in the respective fields and enable the **SSL Required** option.

        ![Vultr database migration wizard](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/aa86a3f4-0044-4170-a19b-e68db7622ec4.png)

    1. Click **Test Connection** to validate your database connection information.
    1. Verify that the connection is successful or check your connection details when unsuccessful.

        ```
        Connection successful! Ready to migrate via replication method
        ```

    1. Click **Begin migration** to migrate your target databases from DigitalOcean to your Vultr Managed Databases for MySQL cluster.
    1. Verify that the migration completes without any errors.

        ![Vultr database migration completed](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/8113f94a-cc51-4408-8cb9-047a24c6b378.png)

    1. Click **Detach connection** to disconnect the source DigitalOcean Managed Databases for MySQL.

??? note "Using MySQL Workbench"

    Migrating your database using MySQL Workbench is a straightforward process. Follow the steps below to migrate your source DigitalOcean Managed Databases for MySQL to the destination Vultr Managed Databases for MySQL using MySQL Workbench.

    1. Download and install MySQL Workbench if it's not installed on your workstation.
    1. Open MySQL Workbench from your applications menu.

        ![Launch MySQL Workbench](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/46385d76-70f6-40bb-b553-6d94c878db78.png)

    1. Click **Migration** on the left navigation menu.
    1. Keep **MySQL** as the database system, Standard (TCP/IP) as the connection method, and specify the source DigitalOcean Managed Databases for MySQL connection information.

        ![Specify source database connection details](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/89eae11d-8f24-41eb-bc17-ae33ae0d4c35.png)

        Within the connection parameters section:

        * Enter your DigitalOcean Managed Databases for MySQL hostname in the **Hostname** field.
        * Enter the database port, such as `25060` in the **Port** field.
        * Enter the database administrator username in the **Username** field.
        * Click **Store in Keychain** to enter the database password and click **OK** to save it.
        * Click **Next** to save the MySQL connection information.

    1. Set up the target database.
    1. Specify the target Vultr Managed Databases for MySQL connection information.

        ![Specify target database connection details](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/064993a3-42ea-415c-8583-5b7aba5673b2.png)

        In the target database section, keep Standard (TCP/IP) as the connection method.

        Keep `Standard (TCP/IP)` as the connection method. Within the connection parameters section:

        * Enter your Vultr Managed Databases for MySQL hostname in the **Hostname** field.
        * Enter the Vultr Managed Databases for MySQL port, such as `16751` in the **Port** field.
        * Enter the Vultr database administrator username, such as `vultradmin` in the **Username** field.
        * Click **Store in Keychain** to enter the password and click **OK** to save it.

    1. Click **Next** to test the connection between your source DigitalOcean Managed Databases for MySQL and the destination Vultr Managed Databases for MySQL cluster.
    1. Verify that the connection is successful.

        ![Database connected](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/d93b23df-4e2a-465a-a4d9-5171edffd89a.png)

    1. Click **Next**.
    1. Select all databases to migrate from your source MySQL cluster, or click **Select All** to choose all available databases.

        ![Select databases](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/4a25223e-6a99-4875-b662-9c6b1e2807d0.png)

    1. Click **Next** and prepare the database schema for migration.
    1. Click **Next** and select the database objects to migrate.

        ![Prepare object](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/692d37cf-a48f-4f48-8add-bde517800489.png)

    1. Select **Migrate Table objects** and click **Next** to prepare the objects for migration.
    1. Click **Next** to review the migrated objects.
    1. Review and verify that the objects migration is successful.

        ![Review migration](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/2d67afae-296a-4ddf-8fd8-e74d3654e251.png)
        
    1. Click **Next** to proceed if no migration errors appear.
    1. Create schema on the target server.
    1. Keep **Create schema in target RDBMS** checked and check the **Keep schemas if they already exist** option.

        ![Create schema on target](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/280b2b4e-71d5-4fdf-8172-9d7bdb1ead00.png)

    1. Click **Next** to start migrating your source DigitalOcean Managed Databases for MySQL to the Vultr Managed Databases for MySQL cluster.

        ![Schema created on target](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/b8daa399-4df6-4e3e-84c9-699117b08454.png)

    1. Click **Next** to review the database migration results when the migration is successful.
      
        ![Review database migration result](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/d2745f61-afef-4437-bb8a-d15c7cd279ab.png)

    1. Verify that the schema creation report does not include any migration errors and click **Next** to set up the data transfer options.

        ![Setup data transfer](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/0291ac19-ac82-45cd-8452-ffc59ba9048c.png)

    1. In the **Data Copy** section, 
    1. Keep **Online copy of table data to target RDBMS** selected and click **Next** to view the migration report.

        ![View migration report](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2149/ca6f8dbc-2992-4b97-9507-6cedbe3db19e.png)

    1. Click **Finish** to complete the migration.

??? note "Using MySQL Dump Backup and Restore"

    You can use the MySQL client tool to import the source database files you exported earlier to the target database. Follow the steps below to migrate your source database to Vultr Managed Databases for MySQL using MySQL Dump.

    1. Back up all databases in the source DigitalOcean Managed Databases for MySQL cluster to `migratetovultr.sql`.

        ```console
        $ mysqldump --host=do-hostname --port=25060 --user=doadmin --password=example-password --all-databases > migratetovultr.sql
        ```

    1. Restore the `migratetovultr.sql` backup file to your Vultr Managed Databases for MySQL cluster.

        ```console
        $ mysql --host=vultr-hostname --port=16751 --user=example-user --password=example-password < migratetovultr.sql
        ```

## Test the Vultr Managed Databases for MySQL

Follow the steps below to test the destination Vultr Managed Databases for MySQL when the migration is successful.

1. Log in to your Vultr Managed Databases for MySQL.

    ```console
    $ mysql --host=vultr-hostname --port=16751 --user=example-user --password=example-password
    ```

1. List all available databases.

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

    Verify that all migrated databases are available in your output, similar to the one below.

    ```
    +--------------------+
    | Database           |
    +--------------------+
    | defaultdb          |
    | information_schema |
    | mysql              |
    | exampledb          |
    | performance_schema |
    | sys                |
    +--------------------+
    ```

1. Switch to a migrated database such as `exampledb`.

    ```sql
    mysql> USE exampledb;
    ```

1. List all tables in the database.

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

    Your output should be similar to the one below.

    ```
    +---------------------+
    | Tables_in_exampledb |
    +---------------------+
    | example_table       |
    +---------------------+
    ```

1. Verify that the table data matches your source database.

    ```sql
    mysql> SELECT * FROM example_table;
    ```

    Your output should be similar to the one below.

    ```
    +----+---------+-----+---------------------+
    | id | name    | age | created_at          |
    +----+---------+-----+---------------------+
    |  1 | Alice   |  25 | 2025-02-11 08:22:27 |
    |  2 | Bob     |  30 | 2025-02-11 08:22:27 |
    |  3 | Charlie |  28 | 2025-02-11 08:22:27 |
    +----+---------+-----+---------------------+
    ```

1. Exit the MySQL console.

    ```sql
    mysql> EXIT;
    ```

## Cutover to Vultr Managed Databases for MySQL

After verifying that the migration is successful, follow the recommendations below to cutover to Vultr Managed Databases for MySQL.

1. Update your application's database connection settings to point to the Vultr Managed Database.
1. Restart your application and monitor it for connection errors or database performance issues after the cutover.
1. Verify that all data in your source DigitalOcean Managed Databases for MySQL matches your destination Vultr Managed Databases for MySQL, and decommission the database cluster to avoid any additional charges.

## Conclusion

You have migrated from DigitalOcean Managed Databases for MySQL to Vultr Managed Databases for MySQL. You can use multiple migration methods to transfer databases to your destination Vultr Managed Databases for MySQL cluster and cutover your existing applications when ready. Vultr Managed Databases for MySQL are scalable and support additional features you can integrate to improve your database performance. Visit the [Vultr Managed Databases for MySQL documentation](https://www.vultr.com/products/managed-databases/mysql/) for more information.
