You can call the UpgradeDBInstanceEngineVersion operation to upgrade the database engine version of an ApsaraDB RDS instance.
If the instance is a primary instance that is attached with a read-only or disaster recovery instance, you must upgrade the database engine version of the read-only or disaster recovery instance before you upgrade the database engine version of the primary instance.
Before you call this operation, make sure that the following requirements are met:
- The instance must be in the Running state.
- The source database engine version must be MySQL 5.5, and the destination database engine version must be MySQL 5.6.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpgradeDBInstanceEngineVersion |
The operation that you want to perform. Set the value to UpgradeDBInstanceEngineVersion. |
DBInstanceId | String | Yes | rm-uf6wjk5xxxxxxx |
The ID of the instance. |
EngineVersion | String | Yes | 5.6 |
The destination database engine version to which you want to upgrade the instance. Valid values: 5.6. |
ClientToken | String | No | ETnLKlblzczshOTUbOCzxxxxxxxxxx |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. |
EffectiveTime | String | No | Immediate |
The time when you want the upgrade to take effect. Valid values:
Default value: Immediate. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
TaskId | String | 10254125 |
The ID of the upgrade task. |
RequestId | String | 65BDA532-28AF-4122-AA39-B382721EEE64 |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=UpgradeDBInstanceEngineVersion
&DBInstanceId=rm-uf6wjk5xxxxxxx
&EngineVersion=5.6
&<Common request parameters>
Sample success responses
XML
format
<UpgradeDBInstanceEngineVersionResponse>
<RequestId> 65BDA532-28AF-4122-AA39-B382721EEE64</RequestId>
<TaskId>10254125</TaskId></UpgradeDBInstanceEngineVersionResponse>
JSON
format
{
"RequestId": " 65BDA532-28AF-4122-AA39-B382721EEE64",
"TaskId": "10254125"
}
Error codes
For a list of error codes, visit the API Error Center.