All Products
Search
Document Center

Data Management:Database cloning

Last Updated:Mar 28, 2026

Database Clone copies table schemas and data from a source MySQL database to a destination MySQL database. Use it to initialize or refresh databases across environments without manual export and import steps. Common scenarios include:

  • Seeding a test environment with your current development schema and data

Prerequisites

Before you begin, ensure that you have:

  • Source and destination databases that are both MySQL

  • Database instances managed in Flexible Management or Stable Change mode. For details, see Control modes

Limitations

  • Only MySQL databases are supported. The source and destination must both be MySQL.

  • The database instances to which the source and destination databases belong must be managed in Flexible Management or Stable Change mode.

Clone a database

  1. Log in to the DMS console.

  2. In the top navigation bar, hover over Database Development, then choose Environment Construction > Database Clone.

  3. In the upper-right corner of the Database Clone Tickets page, click Database Clone.

  4. Configure the cloning task:

    ParameterDescription
    Task NameA descriptive name for the task
    Source database (Only Support MySQL)The MySQL database to clone from. Enter a keyword to search and select
    Destination Database (Only Support MySQL)The MySQL database to clone into. Enter a keyword to search and select
    Source TablesTables to clone: Partial Tables (selected tables only) or All Tables (the entire database)
    Duplicate objectsWhat to do when the destination already has an object with the same name: Skip duplicate name object or Overwrite duplicate name object (warning: the structure and data of the target object will be replaced)
    Migration ObjectsAdditional programmable objects to clone alongside tables: View, Procedures, functions, triggers, and events
    Time optionsWhen to run the task after ticket approval: Running immediately or Specified time
  5. Click Submit.

  6. After the ticket is approved, the cloning task runs automatically according to your time settings.

Verify the result

After the task runs, confirm the clone completed successfully:

  1. On the Ticket Details page, check the ticket status and progress.

  2. Open the SQLConsole for the destination database and query one or more of the cloned tables to confirm the schema and data are present.