Upgrading a MySQL DB snapshot engine version - Amazon Relational Database Service

Upgrading a MySQL DB snapshot engine version

With Amazon RDS, you can create a storage volume DB snapshot of your MySQL DB instance. When you create a DB snapshot, the snapshot is based on the engine version used by your DB instance. In addition to upgrading the DB engine version of your DB instance, you can also upgrade the engine version for your DB snapshots. For RDS for MySQL, you can upgrade a version 5.7 snapshot to version 8.0. You can upgrade encrypted or unencrypted DB snapshots.

The following versions support MySQL DB snapshot upgrade:

  • You can upgrade from RDS for MySQL snapshot version 5.7.16 and higher 5.7 versions.

  • You can upgrade to RDS for MySQL snapshot version 8.0.28 and higher, except for versions 8.0.29, 8.0.30, and 8.0.31.

    You can't upgrade versions 5.7.40, 5.7.41, and 5.7.42 to version 8.0.28, but you can upgrade these versions to version 8.0.32 and higher.

After restoring a DB snapshot upgraded to a new engine version, make sure to test that the upgrade was successful. For more information about a major version upgrade, see Upgrading the MySQL DB engine. To learn how to restore a DB snapshot, see Restoring from a DB snapshot.

Note

You can't upgrade automated DB snapshots that were created during the automated backup process.

You can upgrade a DB snapshot using the AWS Management Console, AWS CLI, or RDS API.

To upgrade a DB snapshot
  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, choose Snapshots.

  3. Choose the snapshot that you want to upgrade.

  4. For Actions, choose Upgrade snapshot. The Upgrade snapshot page appears.

  5. Choose the New engine version to upgrade to.

  6. Choose Save changes to upgrade the snapshot.

    During the upgrade process, all snapshot actions are disabled for this DB snapshot. Also, the DB snapshot status changes from Available to Upgrading, and then changes to Active upon completion. If the DB snapshot can't be upgraded because of snapshot corruption issues, the status changes to Unavailable. You can't recover the snapshot from this state.

    Note

    If the DB snapshot upgrade fails, the snapshot is rolled back to the original state with the original version.

To upgrade a DB snapshot to a new database engine version, use the AWS CLI modify-db-snapshot command.

Options
  • --db-snapshot-identifier – The identifier of the DB snapshot to upgrade. The identifier must be a unique Amazon Resource Name (ARN). For more information, see Working with Amazon Resource Names (ARNs) in Amazon RDS.

  • --engine-version – The engine version to upgrade the DB snapshot to.

Example

For Linux, macOS, or Unix:

aws rds modify-db-snapshot \ --db-snapshot-identifier my_db_snapshot \ --engine-version new_version

For Windows:

aws rds modify-db-snapshot ^ --db-snapshot-identifier my_db_snapshot ^ --engine-version new_version

To upgrade a DB snapshot to a new database engine version, call the RDS API ModifyDBSnapshot operation.

Parameters
  • DBSnapshotIdentifier – The identifier of the DB snapshot to upgrade. The identifier must be a unique Amazon Resource Name (ARN). For more information, see Working with Amazon Resource Names (ARNs) in Amazon RDS.

  • EngineVersion – The engine version to upgrade the DB snapshot to.