This topic lists frequently asked questions about one-click upgrades from ApsaraDB RDS for MySQL to PolarDB for MySQL.
-
Q: What should I do if validation of a check item in Migration evaluation fails?
Category
Check item
Solution
Notice
Event check
The source RDS instance has events, but DTS does not support event synchronization. You must manually synchronize the events to the destination PolarDB cluster.
Source instance basic information check
Source instance running status
The source RDS instance must be in the Running state.
Source instance read/write status
The source RDS instance must be in the Running state and be readable and writable.
Source instance account mode
If the source RDS instance is in high-security mode (database proxy mode), you must create a privileged account (see (Deprecated and redirected to Step 1) Create a database account) or switch to high-performance mode (see Switch to high-performance mode) to perform a one-click upgrade.
PolarDB service-linked role
You must create a service-linked role for PolarDB for your account.
You can follow the instructions in Check whether a service-linked role for PolarDB is created or create one by using OpenAPI.
Migration task dependency check
DTS service permissions
You must grant DTS permissions to access cloud resources.
For instructions, see Grant DTS the permissions to access cloud resources.
Check whether the source instance is empty
The source RDS instance has no databases. You must create a database in the instance before you can start the migration.
Source instance table engine check
Only source RDS instances with tables that use the InnoDB or X-Engine storage engine support the one-click upgrade feature.
Source instance trigger check
If the source RDS instance has triggers, you must delete them first to prevent the migration from being interrupted.
NoteYou can run the following statements to delete triggers from the source RDS instance based on your business requirements.
-- View the triggers. SHOW TRIGGERS; -- Select and run the statement to delete a trigger. DROP TRIGGER trigger_name;After the migration is complete, you can manually create the triggers in the destination PolarDB cluster.
Source instance tables without primary keys check
If the source RDS instance contains tables without primary keys, duplicate data may occur in the destination database after synchronization.
Connect to the database on the source RDS instance by using a privileged account and run the following SQL statement to find tables without primary keys:
SELECT t1.table_schema, t1.table_name FROM information_schema.TABLES t1 LEFT OUTER JOIN information_schema.TABLE_CONSTRAINTS t2 ON t1.table_schema = t2.TABLE_SCHEMA AND t1.table_name = t2.TABLE_NAME AND t2.CONSTRAINT_NAME IN ("PRIMARY") WHERE t2.table_name IS NULL AND t1.table_type = "BASE TABLE" AND t1.TABLE_SCHEMA NOT IN ("information_schema", "performance_schema", "mysql", "sys");You can add primary keys to the tables returned by the query.
If you determine that duplicate records are acceptable, you can ignore this check. When prompted during the one-click upgrade process, select Continue Upgrade.
Source instance key information check
Source instance root account check
To ensure compatibility between the account systems of RDS MySQL and PolarDB and prevent system accounts of the destination PolarDB cluster from being overwritten after migration, the source RDS instance cannot have both the root and aliyun_root accounts. For more information, see Delete redundant system accounts from the source RDS instance.
-
Q: What is the difference between the one-click upgrade from ApsaraDB RDS for MySQL to PolarDB for MySQL and Clone an ApsaraDB RDS for MySQL instance to a PolarDB for MySQL cluster with one click?
A: The following table describes the differences:
Comparison item
One-click upgrade from RDS for MySQL to PolarDB for MySQL
Clone an ApsaraDB RDS for MySQL instance to a PolarDB for MySQL cluster with one click
Whether incremental data migration or synchronization is supported
Supported
Not supported
Whether operations on the source RDS instance are affected
Not affected
Not affected
Whether the MySQL versions of the source and destination can differ
Can differ
Can differ
-
Q: Must the node specifications of the upgraded PolarDB for MySQL cluster match the instance specifications of the source RDS for MySQL instance?
A: Not necessarily. You can select the specifications of the PolarDB for MySQL cluster as needed. The specifications should be no lower than those of the source RDS instance.
-
Q: Do I need to purchase a PolarDB for MySQL cluster before the upgrade?
A: No. You do not need to purchase a PolarDB for MySQL cluster in advance. During the upgrade, the system purchases and creates a PolarDB cluster with the same data as the source RDS instance.
-
Q: Does data migration from RDS affect the source RDS instance?
A: No. The migration does not affect the normal operation of the source RDS instance.
-
Q: Does smooth migration affect the performance of the source RDS instance?
A: The migration does not affect operations on the source RDS instance. However, data migration involves query operations and consumes some of the query performance of the source RDS instance.
-
Q: Does smooth migration affect my business?
A: Smooth migration ensures that no data is lost during the migration. Downtime is less than 10 minutes. During downtime, your business is paused and no incremental data is generated, but the database is not stopped. You can roll back the migration if needed.
-
Q: What are the impacts of canceling the migration?
A: Canceling the migration has the following impacts:
-
The synchronization link from the source cluster to the destination cluster is disconnected, and the two clusters are no longer associated.
-
The destination cluster returns to the read/write state and is not automatically released.If you no longer need the cluster, release it as soon as possible to avoid additional charges.
-
When you manually cancel the migration, you can choose whether to disable binary logging (Binlog) for the cluster. When the migration is canceled automatically, Binlog is not disabled.
NoteDisabling Binlog slightly improves write performance. After Binlog is disabled, existing Binlog files are retained indefinitely. You can first shorten the retention period of Binlog files, wait until the files that you no longer need are automatically deleted, and then disable Binlog. After you disable Binlog, the cluster automatically restarts. The restart task finishes within 5 minutes, and the service is transiently disconnected for about 40 seconds during the restart. The exact duration depends on the data volume and the number of tables. Perform this operation during off-peak hours and make sure that your application has a reconnection mechanism.
-
-
Q: After the upgrade is complete and my business is switched to PolarDB, do I need to modify the connection address in my application?
A: During the migration switchover, you can select Switch with Endpoints (Connection Changes Not Required). The system automatically exchanges the connection addresses on RDS and the PolarDB cluster. Your application automatically connects to the PolarDB cluster without any configuration changes.
-
Q: If the privileged account of the destination cluster lacks some permissions during the migration and upgrade, can I modify the account permissions?
A: You cannot modify account permissions during the migration and upgrade. The permissions of the privileged account on the destination cluster are synchronized from the source instance. If some default permissions are missing after the migration and upgrade, reset the permissions of the privileged account on the Account Management page in the console.
-
Q: I selected Switch with Endpoints (Connection Changes Not Required) during the migration. After the migration is complete, why does the PolarDB cluster still use a new connection address?
A: Only connection addresses that exist on both the source RDS instance and the destination PolarDB cluster can be switched with each other. By default, only the primary endpoint on the private network supports Switch with Endpoints. To switch other connection addresses, create the corresponding connection addresses before the switchover. Otherwise, they are not switched. For information about how to create connection addresses for a PolarDB cluster and an RDS instance, see Manage endpoints and Configure endpoints for an RDS instance.
-
Q: The source RDS instance also has read-only instances. If I select Switch with Endpoints (Connection Changes Not Required), can the connection addresses of the read-only instances also be switched?
A: When you select Switch with Endpoints (Connection Changes Not Required), if the PolarDB cluster has a corresponding cluster endpoint or custom endpoint, that endpoint can be switched with the connection address of a read-only instance in the source RDS instance.
-
Q: After the business switchover is complete, why can't I connect to the PolarDB database, or why can I connect but perform only read operations and no write operations?
A: After the domain name is switched, DNS resolution caching issues can occur. Before the cache expires, you may fail to connect to the database, or the database may support only read operations and reject write operations. Refresh the DNS cache on your server.
-
Q: Before the one-click upgrade to PolarDB, can I run a compatibility test first and get a rough estimate of the migration workload?
A: You can first use the Clone an ApsaraDB RDS for MySQL instance to a PolarDB for MySQL cluster with one click feature to clone data to PolarDB for a compatibility test and to estimate the migration workload. If the test shows no issues, follow the instructions in this topic to perform a one-click upgrade to PolarDB.
-
Q: After the migration switchover, why does the PolarDB console not display the Complete Migration button?
A: If you have already performed the Complete Migration operation, the button disappears to prevent you from performing the same operation again.
-
Q: After a one-click upgrade to PolarDB, do I still need to create the same accounts and passwords as those of the source RDS instance in the destination PolarDB cluster?
A: No. After the upgrade, the PolarDB cluster contains the accounts, passwords, databases, IP address whitelist, and required parameters of the source RDS instance.
-
Q: SSL is enabled on the source RDS instance. How do I migrate the instance to a PolarDB cluster?
A: An RDS instance with SSL enabled supports a one-click upgrade to a PolarDB cluster. You can migrate the instance by using physical migration or logical migration.
NoteIf the connection address of the RDS instance has SSL enabled, and you select Switchover with Endpoints to switch the address, make sure that SSL is enabled for the corresponding connection address of the PolarDB cluster.
-
Q: TDE is enabled on the source RDS instance. How do I migrate the instance to a PolarDB cluster?
A: An RDS instance with TDE enabled supports a one-click upgrade to a PolarDB cluster. You can migrate the instance by using physical migration or logical migration.
-
Q: Does the one-click upgrade support cross-version upgrades? For example, can I upgrade RDS for MySQL 5.6 to PolarDB for MySQL 8.0?
A: The logical migration method of the one-click upgrade, which uses DTS data synchronization, supports cross-version upgrades.
-
Q: If a DTS data synchronization task is already running on the source RDS instance before a one-click upgrade to PolarDB for MySQL, does the upgrade affect the task?
A: No. During a migration that is performed by using the one-click upgrade, full data is first replicated from RDS to a new PolarDB cluster. Incremental data is then continuously synchronized to the PolarDB cluster. The data source of the DTS data synchronization task on the source RDS remains the source RDS. Migrating data to PolarDB does not affect the running or operations of the source RDS.
After the migration switchover, the source RDS becomes read-only. If it serves as the destination of a DTS data synchronization task, data cannot be written to it. Change the destination of the DTS data synchronization task to the new PolarDB cluster. If it serves as the data source of a DTS data synchronization task, change the data source of the task to the new PolarDB cluster as soon as possible after the migration switchover.
You can modify the source or destination database instance of a DTS task only by using OpenAPI. For details, see ModifyDtsJobEndpoint.
-
Q: When I unsubscribe from (release) an RDS instance or change its zone, the message "The specified operation is disabled while the instance is undergoing an engine migration" appears. What should I do?
A: The RDS instance may be undergoing the process described in Solution overview. Go to the PolarDB console to check whether a PolarDB cluster is being migrated. In the PolarDB cluster, complete all upgrade operations (including migration switchovers) before you unsubscribe from (release) the RDS instance or change its zone.
-
Q: How long does it take to migrate 3 TB of data from RDS for MySQL to PolarDB for MySQL?
A: The migration duration is directly related to the data volume, so a fixed estimate cannot be provided. The actual duration depends on the following factors:
-
Instance specifications: The DTS instance class (small, medium, or large) directly affects transfer performance.
-
Network bandwidth: Transfers over the internal network between cloud instances are the fastest. Bandwidth varies depending on the access method: a public IP address, Express Connect, VPN, a self-managed database on ECS, Cloud Enterprise Network (CEN), or Database Gateway (DG). The connection method (unencrypted or SSL) also affects the actual bandwidth.
-
Database load: The read and write load on the source database affects the Binlog read speed.
For incremental data migration, binary logging must be enabled on the source RDS instance, and binary logs must be retained for at least 24 hours. (Recommended) Retain binary logs for 3 days or longer.
Migrate a small test database first, such as 100 GB, record the duration of the full synchronization, and then estimate the migration duration of the entire instance proportionally.
-