All Products
Search
Document Center

PolarDB:Fix database shard connections

Last Updated:Mar 28, 2026

When the network configuration of an ApsaraDB RDS for MySQL instance changes — for example, after a zone switch — the network connection between the PolarDB for Xscale 1.0 instance and that RDS instance breaks. The PolarDB for Xscale 1.0 instance can no longer access the affected RDS instance. Manually fixing the database shard connection restores network access without restarting or reconfiguring the instance.

When to use this procedure

Use this procedure when a zone switch or similar network configuration change on an ApsaraDB RDS for MySQL instance has caused connectivity to break. Typical symptoms include:

  • Write or read operations on the database return connection errors

  • Applications report that they cannot reach the database after a zone change

For other connection problems — such as authentication failures, incorrect credentials, or RDS instance errors — refer to the relevant troubleshooting documentation instead.

Prerequisites

Before you begin, ensure that you have:

  • A PolarDB for Xscale 1.0 instance with at least one database that has lost connectivity to its mounted ApsaraDB RDS for MySQL instance after a network configuration change

  • Access to the PolarDB for Xscale console

Fix shard connections

  1. Log on to the PolarDB for Xscale console.

  2. In the top navigation bar, select the region where the target instance is located.

  3. In the left-side navigation pane, click Instances.

  4. Find the target instance and click the instance ID.

  5. In the left-side navigation pane, choose Configuration and Management > Databases.

  6. Find the target database and click the database name.

    Click the database name

  7. On the Basic Information page, click Fix Database Shard Connections in the Shortcuts section.

    Fix database shard connections

  8. In the dialog box that appears, click OK.