All Products
Search
Document Center

ApsaraDB for MyBase:Migrate an instance

Last Updated:Mar 28, 2026

Migrate an ApsaraDB for MyBase instance to a different host within your dedicated cluster — in the same zone or across zones, depending on the instance edition.

Constraints and risks

Review the following before starting the migration.

Edition constraints

EditionSame-zone migrationCross-zone migration
ApsaraDB MyBase for MySQL Master-replica EditionSupportedNot supported
ApsaraDB MyBase for MySQL High-availability EditionSupportedSupported
ApsaraDB MyBase for PostgreSQLSupportedSupported

Downtime

All migrations cause approximately 30 seconds of disconnection.

Cross-zone migration risks

If you migrate to a host in a different zone, be aware of the following:

  • The virtual IP address (VIP) of the instance changes. Use the endpoint — not the IP address — to connect your application to the instance.

  • If the client cache is full, data cannot be written to the cache until you clear it.

  • If a Data Transmission Service (DTS) task is running on the instance, restart the DTS task after migration completes.

Migrate an instance

  1. Log in to the ApsaraDB for MyBase console.

  2. In the upper-left corner, select a region.

  3. In the left navigation pane, choose Instances > MySQL.

  4. Find the instance to migrate, then choose More > Migrate in the Actions column.

  5. In the panel that appears, configure the following parameters.

    Migrate an instance

    ParameterDescription
    Destination ZoneSelect the target zone from the drop-down list. The list shows all zones where hosts in the dedicated cluster are deployed. Available only for ApsaraDB MyBase for MySQL High-availability Edition and ApsaraDB MyBase for PostgreSQL instances.
    vSwitchSelect a vSwitch in the destination zone. If no options appear, click Create vSwitch to create one. Available only when migrating a primary instance to a host in a different zone.
    Destination HostSelect a specific host to migrate to. If left blank, the instance is automatically placed on an available host in the specified zone. Optional.
    Migration TimeChoose when to apply the migration: Immediate, Maintenance Window 02:00–06:00, or Specified Time.

    You can migrate a primary or secondary instance based on your business requirements. To migrate only a primary instance, configure parameters for the primary instance only.

  6. Click OK.