The ApsaraDB RDS for MySQL backend performs scheduled maintenance on your instance during the maintenance window to keep it stable. The default window is 02:00–06:00. Set the window to off-peak hours to minimize impact on your workloads.
For other database engines, see:
Set the maintenance window of an ApsaraDB RDS for SQL Server instance
Set the maintenance window of an ApsaraDB RDS for PostgreSQL instance
Set the maintenance window of an ApsaraDB RDS for MariaDB instance
Prerequisites
Before you begin, ensure that you have:
An ApsaraDB RDS for MySQL instance
Usage notes
Before maintenance starts, the system sends emails to the contacts associated with your Alibaba Cloud account.
When the maintenance window arrives, the instance enters the Maintaining Instance state. In this state:
Database access and query operations (including performance monitoring) are not affected.
Account management, database management, and IP address whitelist configuration remain available.
Upgrade, downgrade, and restart operations are temporarily unavailable.
During the maintenance window, one or two instance switchovers occur. Configure your application to automatically reconnect to the instance. For details, see Impacts of an instance switchover.
Set the maintenance window for a single instance
Go to the Instances page. In the top navigation bar, select the region where your instance resides. Find the instance and click its ID.
In the Configuration Information section, click Settings to the right of Maintenance Window.

Select a Start Time and an End Time, then click Yes.
The maintenance window is displayed in the time zone of the computer you use to log on to the ApsaraDB RDS console.
Set the maintenance window for multiple instances
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your instances reside.
Select the check boxes to the left of the target instances, then click Modify Maintenance Window at the bottom of the page.
In the dialog box that appears, select a maintenance window and click OK.
The maintenance window is displayed in the time zone of the computer you use to log on to the ApsaraDB RDS console.
API reference
To modify the maintenance window programmatically, use the ModifyDBInstanceMaintainTime API operation.