Short answer: Aurora MySQL version 2 left standard support on 31 October 2024, and paid Extended Support ends in February 2027. Upgrade a clone first, fix every error in upgrade-prechecks.log, test your application, then upgrade production with a Blue/Green Deployment, where the switchover typically takes under a minute.
Why now
Aurora MySQL version 2, compatible with MySQL 5.7, reached the end of standard support on 31 October 2024. Clusters still on it were automatically enrolled in RDS Extended Support, a paid service that runs until February 2027, and only for minor versions 2.11 and 2.12. Every month on version 2 now costs more, and the deadline doesn’t move.
Anwar has migrated databases from MySQL to Amazon Aurora, and upgraded to Aurora MySQL version 3. This is the process, step by step.
Find every cluster still on version 2
Run this in every account and every region you use:
aws rds describe-db-clusters --include-share \
--query 'DBClusters[?(Engine==`aurora-mysql` && contains(EngineVersion,`5.7.mysql_aurora`))].{Cluster:DBClusterIdentifier,Version:EngineVersion,Mode:EngineMode}' \
--output table --region ap-southeast-2Then list the version 3 releases your current version can upgrade to directly:
aws rds describe-db-engine-versions --engine aurora-mysql \
--engine-version 5.7.mysql_aurora.2.11.3 \
--query 'DBEngineVersions[].ValidUpgradeTarget[?IsMajorVersionUpgrade].EngineVersion'Replace the version with your own.
Find the incompatibilities first
Aurora runs mandatory compatibility checks before a major upgrade. If any check reports an error, the upgrade is cancelled before the database goes offline, and the details are written to the upgrade-prechecks.log file. Find these issues on a copy, not on the day.
The most common problems:
- New reserved words. Names such as tables, columns or routine variables that MySQL 8.0 now reserves must be quoted or renamed.
- Removed syntax and features. For example
SQL_CACHEandSQL_NO_CACHEin views and routines, andASCorDESConGROUP BY. - Zero dates.
0000-00-00date, datetime and timestamp values. - Character sets.
utf8is an alias for the deprecatedutf8mb3. Plan a move toutf8mb4. - Definers and names. Triggers and events with missing definers, and mixed-case names when
lower_case_table_namesis set.
MySQL Shell’s upgrade checker (util.checkForServerUpgrade()) catches many of the same issues and can run against a copy before you try a real upgrade.
Choosing an upgrade method
| Method | Downtime | Best when |
|---|---|---|
| Blue/Green Deployment | A switchover, typically under a minute | Production, where downtime matters. A green copy is upgraded and kept in sync, then swapped in. |
| In-place upgrade | The cluster is offline during the upgrade | Smaller databases, or where a maintenance window is acceptable |
| Snapshot restore to a new cluster | Depends on how you cut over | Testing, or when you want a clean new cluster |
The plan, step by step
1. Clone the cluster and upgrade the clone
An Aurora clone uses copy-on-write storage, so it’s quick to create and only the storage that changes is billed separately (the instance is billed as normal). The prechecks then run against your real schema and data:
# Clone the production cluster aws rds restore-db-cluster-to-point-in-time \ --source-db-cluster-identifier prod-cluster \ --db-cluster-identifier prod-upgrade-test \ --restore-type copy-on-write --use-latest-restorable-time aws rds create-db-instance \ --db-instance-identifier prod-upgrade-test-1 \ --db-cluster-identifier prod-upgrade-test \ --engine aurora-mysql --db-instance-class db.r6g.large # Upgrade the clone to the version 3 release you chose aws rds modify-db-cluster \ --db-cluster-identifier prod-upgrade-test \ --engine-version VERSION_3_RELEASE \ --allow-major-version-upgrade \ --db-cluster-parameter-group-name aurora-mysql8-cluster \ --db-instance-parameter-group-name aurora-mysql8-instance \ --apply-immediately
2. Fix every error
Read upgrade-prechecks.log in the clone’s logs, fix every error in the schema, and review the warnings and notices. Repeat on a fresh clone until the upgrade completes cleanly.
3. Test the application against the clone
Include stored procedures, reports and anything that uses unusual SQL. Compare query plans for the slowest queries, because the MySQL 8.0 optimiser can choose differently.
4. Prepare parameter groups
Version 3 needs its own cluster and instance parameter groups. Recreate any custom settings rather than assuming the defaults match.
5. Upgrade production with a Blue/Green Deployment
aws rds create-blue-green-deployment \ --blue-green-deployment-name prod-to-v3 \ --source arn:aws:rds:ap-southeast-2:123456789012:cluster:prod-cluster \ --target-engine-version VERSION_3_RELEASE \ --target-db-cluster-parameter-group-name aurora-mysql8-cluster \ --target-db-parameter-group-name aurora-mysql8-instance # When the green environment is in sync and tested, during a quiet period: aws rds switchover-blue-green-deployment \ --blue-green-deployment-identifier bgd-xxxxxxxxxxxx \ --switchover-timeout 300
6. Watch it
After the switchover, watch slow queries, error rates and replication lag. Keep the old blue cluster until you’re past your recovery window (see the mistakes below).
The prechecks themselves use CPU and memory, and can be slow on a cluster with many objects. Running them on a clone or the green environment keeps that load off production.
Common mistakes with Blue/Green Deployments
- Binary logging off. Blue/Green Deployments keep the green copy in sync through binary log replication, so binary logging must be on in the source cluster’s parameter group. Turn it on well ahead of time.
- The event scheduler left on.
event_schedulermust be disabled on the green environment when you create the deployment. - A master password managed by Secrets Manager. Blue/Green Deployments don’t support it. Plan how you’ll handle that first.
- Deleting the blue cluster straight away. Point-in-time recovery history doesn’t carry over: the new production cluster can only be restored to points after the green environment was created. Keep the old cluster for at least your required recovery window.
- Forgetting attached IAM roles. Roles associated with the cluster aren’t copied to green. Reassociate them after switchover.
- A database named
tmp. It isn’t copied to the green environment. - RDS Proxy added late. Register the blue cluster with the proxy before you create the deployment; it can’t be registered afterwards.
Sources
- AWS: Preparing for Aurora MySQL version 2 end of standard support
- AWS: Major version upgrade prechecks for Aurora MySQL
- AWS: Aurora Blue/Green Deployments
- AWS: Limitations and considerations for Aurora Blue/Green Deployments
See also AWS consulting.
Keep reading
Related articles
Next step
Planning a database upgrade?
On a 30-minute call we’ll look at your cluster and the safest path to version 3.