Updated on 2026-11-17 GMT+08:00

Upgrading the Minor Version

Scenarios

RDS for MySQL supports automatic and manual minor version upgrades to improve performance, add new functions, and fix bugs.

Checking the Kernel Version of an Instance

By default, a newly created instance uses the latest minor version. When a new minor version is released on Huawei Cloud, the Upgrade link is displayed in the DB Engine Version column on the Instances page. You can click Upgrade to go to the minor version upgrade page.

Figure 1 Version upgrade

Upgrade Methods

The minor version of an instance can be upgraded in the following ways:

  • Single-node instances or read replicas: The system performs an in-place upgrade by stopping the kernel process and then upgrading the kernel.
  • For a primary/standby instance, the system uses a rolling upgrade, which requires two primary/standby switchovers. The system first upgrades the standby instance, then performs a primary/standby switchover and upgrades the original primary instance, and finally performs another switchover.

You can choose an upgrade time as needed.

  • Upon submission: The system upgrades the minor version upon your manual submission of the upgrade request.
  • In maintenance window: The system upgrades the minor version during the maintenance window you specified. For details about how to change the maintenance window, see Configuring the Maintenance Window.

If the kernel version of your instance has potential risks or major defects, has expired, or has been brought offline, the system will notify you by SMS message or email and deliver an upgrade task during the maintenance window.

Upgrade Precautions

Table 1 Upgrade precautions

Phase

Precautions

Before an upgrade

  • When any new minor version is released to periodically synchronize open-source community bug fixes and patch updates, upgrade the minor version immediately or schedule the upgrade during the maintenance window.
  • Upgrading the kernel minor version will reboot your RDS for MySQL instance and may briefly interrupt workloads. Perform the upgrade during off-peak hours, or ensure that your application supports automatic reconnection.
  • During a kernel minor version upgrade, in addition to brief network disconnections caused by primary/standby switchovers, there will be two occurrences where a single SQL update or write operation may wait for up to 10 seconds due to the default semi-synchronous replication between the primary and standby instances. You can change the replication mode to asynchronous before the upgrade to avoid this issue.
  • If primary and standby instances are deployed in the same AZ, a minor version upgrade triggers a switchover. If they are deployed in different AZs, a minor version upgrade triggers two switchovers.
  • When you upgrade the minor version of a primary instance, any associated read replicas will also be upgraded synchronously. The instances will reboot after the upgrade completes. Select an appropriate time to perform the upgrade. (Minor versions of read replicas cannot be upgraded individually.)
  • During a kernel minor version upgrade, if the RDS instance serves as the source of a DRS task, DRS may fail to pull logs from the RDS instance. If the RDS instance serves as the destination of a DRS task, DRS may fail to write data to the destination database.
    You are advised to check the binlog retention period of the RDS instance before upgrading the kernel minor version.
    • If the binlogs are within the retention period, the DRS task will automatically restart after the minor version upgrade is complete.
    • If the binlogs exceed the retention period, you must reconfigure or recreate a DRS task.
  • You are advised to perform a full backup before upgrading the minor version.
  • If the replication latency of a primary/standby instance exceeds 300 seconds, the minor version cannot be upgraded.
  • If there are abnormal nodes in an instance, the minor version cannot be upgraded.
  • RDS for MySQL instances with event scheduler enabled do not support minor version upgrades. If you want to perform a minor version upgrade, disable event scheduler first. For details, see Enabling or Disabling Event Scheduler.
  • In kernel versions later than RDS for MySQL 8.0.28, utf8mb3 is used to replace utf8 for the query results of tables in the system database information_schema. In versions earlier than 8.0.28, Connector/Net does not support utf8mb3. If utf8mb3 is used, the following error message is displayed: Character Set 'utf8mb3' is not supported by .Net Framework. If your application uses Connector/Net, upgrade Connector/Net to 8.0.28 or later before upgrading the RDS for MySQL kernel. For details, see MySQL 8.0.29 Character Set Support and Changes in MySQL Connector/NET 8.0.28.

During an upgrade

  • A kernel minor version upgrade is generally completed within a few minutes. During an upgrade, do not perform any of the following operations, as they can significantly increase the upgrade time:
    • Frequently accessing system databases/tables such as performance_schema and mysql
    • Frequent write operations that result in high replication latency and a high percentage of dirty buffer pool pages
  • DDL operations on events, such as CREATE EVENT, DROP EVENT, and ALTER EVENT, are not allowed during a minor version upgrade. If there is any DDL operation, handle it by referring to What Can I Do If a DDL Operation Is Being Performed on the Primary Node During a Minor Version Upgrade?

After an upgrade

  • For kernel versions 8.0.28 and later, TLSv1.1 is not supported. You can modify the TLS version by using the loose_tls_version parameter.
  • After a kernel minor version upgrade, the instance will be updated to the new minor version and cannot be downgraded. If the upgrade fails, the instance will automatically roll back to the source version.

Upgrading the Minor Version

  1. Log in to the RDS console.
  2. Click in the upper left corner and select a region.
  3. On the Instances page, locate the target instance and click Upgrade Minor Version.

    Figure 2 Upgrading a minor version

  4. In the displayed dialog box, set the following parameters and click OK.

    • Scheduled Time
      • Upon submission: The system upgrades the minor version immediately after you have submitted your upgrade request.
      • In maintenance window: The system will upgrade the minor version during the maintenance window that you have configured.
    • Perform a Second Switchover to Keep Primary/Standby AZs Unchanged

      For a primary/standby instance, the system first upgrades the standby instance, then performs a switchover, and finally upgrades the original primary instance. After the upgrade is complete, if the primary and standby AZs are different, the system performs another switchover.

    Figure 3 Upgrading a minor version

  5. Return to the instance list. In the navigation pane, choose Task Center and check the progress of the upgrade task.

    • If you have selected Upon submission for Scheduled Time:

      On the Instant Tasks page, search for the task Upgrading a MySQL DB instance engine version and check the execution progress. Instant tasks cannot be canceled.

    • If you have selected In maintenance window for Scheduled Time:

      On the Scheduled Tasks page, search for the instance ID and check the execution status of the upgrade task.

      If the task is in the To be executed state, you can click Cancel to cancel the task.

    For details, see Task Center.

FAQ