Cloud & Infrastructure · Databases
MySQL 8.0 End of Life: Upgrade to 8.4 LTS, Then 9.7
MySQL 8.0 left community support on April 30, 2026. You can't jump straight to 9.7: go 8.0 to 8.4 LTS first. Here's what breaks at each hop and how to test it.
Abhishek Gupta
11 min read
Sponsored
MySQL 8.0 went end of life on April 30, 2026. If you’re still on it, the move is 8.0 to 8.4 LTS now, and 8.4 to 9.7 LTS later. You can’t do it in one jump. MySQL’s upgrade path rules say an LTS series can’t be skipped, and 8.4 sits between 8.0 and 9.7.
Two things make this a December problem instead of a someday problem. Amazon RDS shipped 9.7.4 on November 18, so the managed-database crowd now has both targets available. And RDS moved 8.0 onto paid Extended Support on August 1, which means anyone still on it has been paying extra for four months.
This guide covers the decision, both hops, and the breaking changes that hit web applications. The PostgreSQL 14 end-of-life guide covers the same problem for Postgres shops.
MySQL 8.0 end of life: the dates that matter

Dates from the Amazon RDS for MySQL release calendar:
| Version | Community end of life | RDS end of standard support | RDS end of Extended Support |
|---|---|---|---|
| 8.0 | April 30, 2026 | July 31, 2026 | July 31, 2029 |
| 8.4 LTS | April 30, 2029 | July 31, 2029 | July 31, 2032 |
| 9.7 LTS | April 30, 2031 | July 31, 2031 | July 31, 2034 |
The last community release of 8.0 was 8.0.46, in April. Everything since then on RDS (8.0.46-RDS.20260908, for example) is AWS patching CVEs itself under Extended Support. Self-hosted 8.0 gets nothing. Extended Support pricing also steps up a tier from August 1, 2028, so waiting gets more expensive the longer it goes on.
A note on version numbers: after 9.7, Oracle’s Innovation releases moved to calendar-style numbers (26.7 in July, 26.10 in October). Those are short-lived Innovation releases. For a client production database, stay on the LTS line.
Why you can’t jump straight to 9.7
The upgrade path table in the MySQL manual allows exactly these moves for an LTS server:
- Within the series (8.0.37 to 8.0.46), by any method including MySQL Clone.
- To the next LTS series (8.0 to 8.4), in place, by dump and load, or through replication.
- To an Innovation release before the next LTS (8.0 to 8.3, say).
Going from 8.0 to anything after 8.4 isn’t on the list. The manual’s own example spells it out for 5.7: “first upgrade MySQL 5.7 to MySQL 8.0, and then upgrade MySQL 8.0 to MySQL 8.4.” The same logic puts 8.4 between you and 9.7. RDS follows the rule too, offering 8.0 to 8.4 and 8.4 to 9.7 as its only major upgrades in this range.
A logical dump from 8.0 restored into a fresh 9.7 server looks like a way around it. Don’t bother. The rule is there because each hop has its own incompatibilities, and a dump-and-load still hits every one of them at once, with no supported tool checking them for you. Two hops, each tested, is less work than one big unsupported one.
Hop 1: 8.0 to 8.4 LTS
Start with the upgrade checker in MySQL Shell. Point it at the live 8.0 server (or better, a restored copy) and name the target version:
mysqlsh -- util check-for-server-upgrade root@db-staging:3306 \
--target-version=8.4.13 --output-format=JSON > upgrade-check-8.4.json
It flags removed variables in your config, tables the upgrade can’t handle and accounts on deprecated auth plugins. Read every error and every warning. Then work through the list below, because the checker can’t see your application code.
Authentication: mysql_native_password is off by default
From 8.4.0, the 8.4 release overview says, the mysql_native_password plugin “is no longer enabled by default.” Any account still using it fails to log in after the upgrade. Find them first:
SELECT user, host, plugin
FROM mysql.user
WHERE plugin = 'mysql_native_password';
You can start 8.4 with --mysql-native-password=ON to buy time. That option is gone in 9.0, so it gets you through one hop, not two. Migrate the accounts while you’re still on 8.0:
ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY 'new-strong-password';
The catch is the client side. Every driver that connects has to support caching_sha2_password, and it needs either TLS or RSA key exchange on the first login. Most current drivers handle it. The original mysql package for Node.js is the well-known holdout: support for the plugin has sat in an open pull request for years, and the usual fix is moving to mysql2. On the PHP side, mysqlnd gained support in PHP 7.4, so an app stuck on older PHP has a second upgrade to do (the PHP 8.2 end-of-life guide covers that one). Check every service, cron job and BI tool that holds a database credential, not only the main app.
Replication statements that are now syntax errors
8.4 removed the old replication vocabulary outright. These now fail to parse:
| Removed in 8.4 | Use instead |
|---|---|
CHANGE MASTER TO ... MASTER_HOST= | CHANGE REPLICATION SOURCE TO ... SOURCE_HOST= |
START SLAVE / STOP SLAVE | START REPLICA / STOP REPLICA |
SHOW SLAVE STATUS | SHOW REPLICA STATUS |
SHOW MASTER STATUS | SHOW BINARY LOG STATUS |
RESET MASTER | RESET BINARY LOGS AND GTIDS |
SHOW MASTER LOGS / PURGE MASTER LOGS | SHOW BINARY LOGS / PURGE BINARY LOGS |
Your application code rarely runs these, but your failover scripts, backup jobs, monitoring checks and Ansible roles often do. Grep for them:
grep -rniE "CHANGE MASTER|(START|STOP|SHOW|RESET) SLAVE|SHOW MASTER (STATUS|LOGS)|RESET MASTER|PURGE MASTER" \
./ops ./scripts ./ansible ./monitoring
Health checks are the sneaky one. A probe that parses SHOW SLAVE STATUS goes red the moment the replica restarts on 8.4, and someone gets paged at 2 a.m. for a replica that’s actually fine.
Config options that stop the server starting
A removed option in my.cnf stops mysqld from starting at all. The common ones:
expire_logs_daysis gone. Usebinlog_expire_logs_seconds.default_authentication_pluginis gone. Useauthentication_policy.--skip-host-cacheis gone. Use--host-cache-size=0.--sslandhave_sslare gone. Use--tls-version.master_info_repositoryandrelay_log_info_repositoryare gone.
The tools went too. mysql_upgrade and mysqlpump no longer ship with 8.4. If a nightly backup job calls mysqlpump, switch it to mysqldump or MySQL Shell’s dump utilities before the upgrade, or you lose backups without noticing.
Schema blockers
Two schema issues fail the upgrade or later DDL. First, the manual says you must fix any table with a FLOAT or DOUBLE column using AUTO_INCREMENT, “otherwise, the upgrade fails.” Find them:
SELECT table_schema, table_name, column_name, data_type
FROM information_schema.columns
WHERE extra LIKE '%auto_increment%'
AND data_type IN ('float', 'double');
Second, restrict_fk_on_non_standard_key defaults to ON, so a CREATE TABLE with a foreign key pointing at a non-unique or partial key is rejected. Existing tables survive. The trouble shows up in your migration history: replaying old migrations into a fresh 8.4 database (in CI, or when a new developer runs migrate from scratch) can fail on a foreign key that 8.0 accepted. Run your full migration chain against an empty 8.4 server as part of testing. If your migrations go through a tool like Flyway or Atlas, the schema migration tools comparison has notes on running them in CI.
InnoDB defaults that change performance
These don’t break anything. They change how the server behaves under load, which is worse in a way, because nothing errors:
| Variable | 8.0 default | 8.4 default |
|---|---|---|
innodb_adaptive_hash_index | ON | OFF |
innodb_change_buffering | all | none |
innodb_io_capacity | 200 | 10000 |
innodb_log_buffer_size | 16 MiB | 64 MiB |
innodb_flush_method (Linux) | fsync | O_DIRECT where supported |
The new values suit SSD-backed servers, which is most of them now. But a read-heavy workload that leaned on the adaptive hash index can slow down, and you only find out by measuring. If you pin any of these in my.cnf already, your setting wins and nothing changes. If you rely on defaults, benchmark your top queries on a production copy before and after.
Hop 2: 8.4 to 9.7 LTS
Once production has run on 8.4 for a while and nothing is logging auth errors, the second hop is smaller. Run the checker again with --target-version=9.7.4. Then look at these.
The 9.0.0 release notes say mysql_native_password “has been removed,” and with it the --mysql-native-password option and the default_authentication_plugin variable. There’s no switch to turn it back on, so any account still using it has to be migrated before this hop.
9.0 also changed how IGNORE handles a scalar subquery that returns more than one row. INSERT ... IGNORE, UPDATE IGNORE and DELETE IGNORE used to swallow that error. Now they raise it. Search your code for IGNORE statements with subqueries. Data-import jobs are the usual place.
9.7 itself removes replica_parallel_type and group_replication_allow_local_lower_version_join. If either is in your config, delete it.
What you get for the effort: InfoQ and Bytebase note several former Enterprise features now in the Community edition with 9.7. They include the hypergraph join optimizer (experimental and off by default; Bytebase recommends enabling it per query, not globally), writable JSON duality views, an OpenTelemetry telemetry component and better Group Replication metrics. The native VECTOR type arrived in the 9.x line too. The MySQL VECTOR vs pgvector comparison covers whether it’s good enough for semantic search.
One operational trap: InfoQ reported that when 9.7.0 shipped, an update to mysql-community.repo (MySQL Bug #120315) silently disabled the 8.4 repository and enabled 9.7. On a self-hosted server with unattended upgrades, that’s a surprise major-version jump. Pin the repository and the package version on 8.4 hosts until you choose to move.
Picking the method
| Method | Downtime | Rollback | When |
|---|---|---|---|
| RDS major version upgrade | Minutes to an hour | Restore the pre-upgrade snapshot | Default for RDS. Rehearse on a snapshot restore first. |
| In-place (swap binaries, restart) | Minutes | Restore from backup | Self-hosted, small to mid-sized data |
| Dump and load | Grows with data size | Old server untouched | Small databases, or cleaning up years of drift |
| Replication, then cut over | Seconds | Point traffic back | Large or busy databases where downtime costs money |
The replication route works on both hops: build an 8.4 replica of your 8.0 primary, let it catch up, then promote it. A replica can run a newer version than its source within these supported paths, not the other way round, so you can’t keep the old server replicating back from the new one as a fallback once writes move. Decide your rollback point before cutover. On RDS, a blue/green deployment does the replica-and-switch for you.
If you’re cutting over a busy database, the connection layer matters as much as the server. A pooler or proxy in front lets you switch targets without redeploying every service. The connection pooling guide covers the setup.
A test plan for each hop
- Restore last night’s production backup to a staging server. An empty database won’t show you the blockers.
- Run
util.checkForServerUpgradeagainst it with the exact target version. Fix every error. - Migrate every
mysql_native_passwordaccount on the old version, and watch the logs for a week for failed logins from clients you forgot. - Grep ops scripts, health checks and config management for the removed replication statements and options.
- Replay your full migration history into an empty server on the new version.
- Run the upgrade on staging and time it. That number is your maintenance window.
- Compare plans and latency for your slowest queries before and after (the InnoDB defaults are the reason).
- Pin package repositories on self-hosted hosts so the next hop happens when you decide.
If the database came with a codebase you inherited and nobody remembers which services hold credentials, start with the inherited codebase checklist. Step 3 goes faster when you have that list.
The short version: book the 8.0 to 8.4 rehearsal for this month, migrate auth plugins first, and leave 9.7 for the new year, once 8.4 has run long enough that you trust it.
Frequently asked questions
- Can I upgrade MySQL 8.0 directly to 9.7?
- No. MySQL's upgrade path rules say an LTS or bugfix series can't be skipped, and 8.4 is the LTS that follows 8.0. Upgrade 8.0 to 8.4 first, then 8.4 to 9.7. Amazon RDS enforces the same order: it supports 8.0 to 8.4 and 8.4 to 9.7 as major version upgrades.
- Should I stop at MySQL 8.4 or go all the way to 9.7?
- Stop at 8.4 first, whatever your final target is. AWS lists 8.4's community end of life as April 30, 2029, so it gives you over two years of runway. Go on to 9.7 (community end of life April 30, 2031) when your drivers have been running cleanly on caching_sha2_password and you want the 9.x features.
- What happens if I keep running MySQL 8.0?
- The server keeps working, but Oracle no longer ships community bug or security fixes for 8.0. On Amazon RDS, 8.0 left standard support on July 31, 2026 and now runs under Extended Support, which carries an extra charge and ends on July 31, 2029.
Sources
- MySQL 9.7 Reference Manual: Upgrade Paths
- MySQL 8.4 Reference Manual: What Is New in MySQL 8.4 since 8.0
- MySQL 9.0.0 release notes
- MySQL 9.7 Reference Manual: What Is New in MySQL 9.7
- Amazon RDS for MySQL versions and release calendar
- endoflife.date: MySQL
- InfoQ: MySQL 9.7 LTS
- Bytebase: Notes on the MySQL 9.7 LTS release
Sponsored
More from this category
More from Cloud & Infrastructure
Sponsored
Discussion
Join the conversation.
Comments are powered by GitHub Discussions. Sign in with your GitHub account to leave a comment.
Sponsored