Restore a MySQL database
After you back up a MySQL database to a cloud backup vault by using Cloud Backup, you can restore the backed-up database to the original MySQL instance or to another registered MySQL instance in the same region as needed.
Prerequisites
A MySQL backup has been created in the Cloud Backup console. For more information, see Back up MySQL.
The MySQL database is in the Online state. If the destination MySQL database instance is in an abnormal state, the restore job fails. For more information, see Database backup FAQ.
Billing
The restore feature is free of charge.
Notes
The backup and restore rates of Cloud Backup are measured in a lab test environment and are provided for reference only. For more information, see Database backup and restore rates.
If you restore data to a new MySQL instance, you must register the instance in the Cloud Backup console in advance and make sure that the database is in the Online state.
Create a MySQL restore job
To restore a backed-up database, perform the following steps:
Log on to the Cloud Backup console.
Click , select the region in which the backup resides, and then click MySQL. Click the ECS Database Instance or Local Database Instance tab. Find the target MySQL instance and click Restore in the Actions column on the right side of the instance.

In the Create Restore Job panel, follow the configuration wizard to complete the following operations.
Configure the Restore Items and click Next.
Drag the slider on the timeline to set the Recovery Point and specify the point in time to which you want to restore the database.

Configure the Plan Name of this restore job, start the restore immediately, and click Next.
Currently, only immediate restore is supported. You cannot specify a restore time.
Configure the Restore Config and click Next.

Parameter
Description
Retry Time
The interval at which the database is reconnected after the connection is interrupted during restoration. Unit: minutes.
Speed Limit
The amount of data restored per second. Unit: MB/s. A value of 0 indicates no limit.
To prevent database performance problems caused by restoring a large amount of data, we recommend that you set a reasonable speed limit.
Force Apply Binlog
If you turn on this option, binlog is forcibly used to restore data even if errors occur. Binlog is an important binary log file that records changes in MySQL databases and contains the change records of all DDL and DML statements.
Skip grant tables when applying binlog
If you turn on this option, the binary log is not blocked by access-denied errors caused by insufficient permissions when logs are restored.
Select the destination instance for the restore and click Create.
Select the destination database instance. The MySQL instance that was backed up is selected by default. You can also select an instance in another account from the Specified Account drop-down list. Cross-account restoration is supported.
NoteYou can select the Only Check Offline Instance option to find offline instances. You can restore the data on these offline instances to a new instance on which the new client is installed to implement cross-instance data restoration. For more information, see Database backup FAQ.
After the restore job is created, the system starts to restore the database. On the Restore Plan tab, you can view the restore job that you created. After the restoration is complete, the status changes to Completed.

After the restoration is complete, you can log on to the MySQL database and verify the data.