You can update the minor engine version of an ApsaraDB RDS for MySQL instance. You can also configure settings for the system to automatically update the minor engine version of the RDS instance. The update methods are also suitable for a serverless RDS instance. The new minor engine version improves performance, provides new features, and fixes bugs. This helps ensure continuous optimization and security of your RDS instance.
For more information about the release notes for minor engine versions of an RDS instance or a serverless RDS instance, see Release notes for AliSQL.
For more information about how to update the minor engine version of an RDS instance that runs a different database engine, see the following topics:
Version status description
Discontinued: If a minor engine version has known major defects or has expired for more than one year, the minor engine version is discontinued. In this case, the minor engine version is no longer available when you purchase RDS instances.
Outdated: If the expiration time specified for a minor engine version arrives, the minor engine version is considered outdated. For more information about the expiration time of a minor engine version, see Release notes for AliSQL.
Stable: All minor engine versions excluding discontinued and outdated minor engine versions are considered stable.
Feature description
The automatic update method is used only as an auxiliary method. The method cannot ensure that the minor engine versions of all RDS instances are updated to the latest versions. You can go to the Basic Information page of your RDS instance, view the status of the minor engine version, and then update the minor engine version at the earliest opportunity to prevent potential risks that may exist in previous minor engine versions. If you cancel the O&M tasks that the system delivered to update the minor engine version or do not update the minor engine version to the latest version after you receive the update notification from the console, you shall assume all liabilities for risks such as service interruptions and data loss. For more information, see ApsaraDB RDS Terms of Service.
Automatic update: The minor engine version of your RDS instance or serverless RDS instance is automatically updated. You can check the update method of the RDS instance based on the value of the Automated Update of Minor Engine Version parameter on the Basic Information page. If the minor engine version of the RDS instance is not the latest version, the system automatically delivers active O&M tasks to update the minor engine version at irregular intervals. The system automatically updates the minor engine version of the RDS instance within the maintenance window that you specified. For more information, see Configure a maintenance window.
NoteThe system notifies you of the tasks by using methods such as text messages and emails. If you want to receive the notifications, you must log on to the Message Center console, select ApsaraDB Fault or Maintenance Notifications, and then configure the contact information.
You can cancel an active O&M task or configure a scheduled event to execute the active O&M task. For more information, see Manage scheduled events.
Manual update: You can go to the Basic Information page of the RDS instance to change the update method to Manual Upgrade. If the minor engine version of your RDS instance has known major defects, expires, or is phased out and manual update is used for the RDS instance, the system automatically delivers the active O&M task to update the minor engine version of your RDS instance.
Impacts
An instance switchover may occur during the update of minor engine versions. For more information about the impacts of an instance switchover, see Impacts of an instance switchover.
The system automatically updates the minor engine version of your RDS instance within the maintenance window that you specified. You can go to the Basic Information page of your RDS instance to change the maintenance window.
We recommend that you perform manual updates during off-peak hours or modify the code of your application for the application to automatically reconnect to your RDS instance.
Usage notes
If the minor engine version of your RDS instance is outdated, the RDS instance may encounter risks such as service interruptions and data loss. We recommend that you update the minor engine versions of their RDS instances on a regular basis or immediately after you receive O&M notifications from Alibaba Cloud.
If a read-only RDS instance is attached to your primary RDS instance and the minor engine version of the read-only RDS instance is earlier than the new minor engine version, the system updates the minor engine version of the read-only RDS instance and then updates the minor engine version of the primary RDS instance.
If the minor engine version of an RDS instance is discontinued or is not in the maintenance list, the system updates the minor engine version to the latest version when the RDS instance is upgraded, the specifications of the RDS instance is changed, or Alibaba Cloud upgrades the hardware for the instance.
After you update the minor engine version of your RDS instance, you cannot roll the minor engine version back to the previous version.
After you update the minor engine version of an RDS instance or a serverless RDS instance, the value of the Backup Usage parameter on the Basic Information page of the instance may be 0. After the next scheduled backup is complete, the actual value of the Backup Usage parameter is displayed.
The system does not deliver O&M tasks to update the minor engine versions of newly created RDS instances. If you want to update the minor engine version of a newly created RDS instance to the latest version, you can go to the Basic Information page of the RDS instance. For more information, see Update the minor engine version.
After you start an update task, you cannot cancel the task. If the update fails, all changes are rolled back and the major engine version and metadata of the RDS instance remain unchanged.
If a minor engine version meets the requirements to be discontinued, the minor engine version is discontinued even if the lifecycle of the minor engine version does not end.
Description of risks in minor engine version updates
Risk | Description |
.NET connection | If the minor engine version of your RDS instance is updated to 20220830 (equivalent to MySQL 8.0.28) or later, risks occur in .NET connections. For more information, see .NET compatibility issues. |
Incompatibility | If the minor engine version of your RDS instance is updated to 20210930 or later, compatibility issues related to PHP may occur. For more information, see PHP compatibility issues. If a compatibility issue related to PHP occurs, reconnect to the RDS instance to resolve the issue. |
Database behavior inconsistency | After you update the minor engine version of your RDS instance, you may experience inconsistent database behaviors. For example, when you update the minor engine version to MySQL 8.0.19 or later, the widths field of the integer type is deprecated. For more information, see MySQL official documentation. Database behavior inconsistency caused by a minor engine version update are subject to open source MySQL. |
Configure the method to update the minor engine version
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the Configuration Information section of the Basic Information page, click Settings to the right of Automated Update of Minor Engine Version.
Select Automatic Upgrade or Manual Upgrade and click OK.
Configure the manual update of the minor engine version
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the Configuration Information section, click Update Minor Engine Version.
NoteIf you cannot find Update Minor Engine Version, the in-use minor engine version is the latest version.
In the dialog box that appears, configure the Latest Version and Upgrade Time parameters, and click OK.
View the progress of the current task and details of historical tasks
If you want to view the progress of the current updare task and details of historical update tasks, you can log on to the ApsaraDB RDS console Task Center to view details such as task type, status, progress, start time, and end time. The Task Center supports tracking records of manual and automatic update tasks from the past 30 days. For more information, see Use Task Center.
FAQ
After I update the minor engine version of my RDS instance, why does the SELECT @@version statement still return the minor engine version that I used before the update?
The SELECT @@version statement returns the kernel engine version of MySQL. To view the version of AliSQL, you must run the
show variables like '%rds_release_date%'
command.Do I update the minor engine version of my RDS instance only to the next minor engine version?
You can update the minor engine version of your RDS instance to any new minor engine version that is available in the ApsaraDB RDS console.
Why does an instance switchover occur during the update? Does the update cause other serious risks?
Before the system updates the minor engine version of your primary RDS instance, the system updates the minor engine version of the secondary RDS instance. After the minor engine version of the secondary RDS instance is updated, the system switches your workloads over to the secondary RDS instance. The update does not cause other serious risks. For more information about the impacts of an instance switchover, see Impacts of an instance switchover.
After I configure settings for the system to automatically update the minor engine version of my RDS instance, the minor engine version is not automatically updated. Why?
The following list describes the possible reasons:
If your RDS instance resides in the classic network, automatic update is not supported. You must change the network type of the RDS instance from the classic network to a virtual private cloud (VPC).
Your RDS instance does not run the most recent database proxy version. You must upgrade the database proxy version.
The automatic update of the minor engine version is an O&M task that is delivered at regular intervals. The automatic update is not immediately performed.
The minor engine versions of RDS instances that reside in the classic network cannot be updated. When I change the network type of an RDS instance from the classic network to a VPC, no vSwitches meeting the required conditions exist in the zone in which the RDS instance resides. How do I create a VPC? Am I charged for the new VPC?
You are not charged for the new VPC. For more information about how to change the network type of an RDS instance from the classic network to a VPC, see Change the network type.
Related operations
Operation | Description |
Updates the minor engine version of an instance. | |
Changes the method that is used to update the minor engine version of an instance. |