To upgrade MySQL 8.0 to 8.4 LTS, run mysqlsh -- util check-for-server-upgrade --target-version=8.4.0, take a full mysqldump backup, switch the apt source from 8.0 to 8.4, and start 8.4 against the existing data directory. Then replace the removed default_authentication_plugin setting in my.cnf with authentication_policy, and deal with any accounts still on mysql_native_password, which 8.4 disables by default.
MySQL 8.4 became the new Long Term Support (LTS) release in April 2024. Oracle's release cadence changed: 8.0 was effectively a perpetual rolling release with 50+ point versions over 6 years, and 8.4 LTS is the first of the new "LTS every two years, Innovation in between" model (its successor, MySQL 9.7 LTS, followed in April 2026). Premier (full bug-fix) Support for 8.4 LTS runs through April 2029, with Extended (security-only) Support through April 2032. The 8.0 to 8.4 upgrade is much smaller than the 5.7 to 8.0 jump, but Oracle used the major-version boundary to actually remove deprecated features. The standout: default_authentication_plugin is gone, replaced by authentication_policy, and mysql_native_password is disabled by default. Below is the full procedure with the breaking changes that matter, the new system variables, and how to roll back.
How do I upgrade MySQL 8.0 to 8.4 LTS?
The upgrade is a five-step procedure on a self-hosted box. First, run mysqlsh -- util check-for-server-upgrade --target-version=8.4.0 to scan for deprecated-and-now-removed features in your schema and config. Second, take a full logical backup with mysqldump --all-databases --single-transaction --master-data=2. Third, replace the apt source from 8.0 to 8.4, stop MySQL, install the 8.4 packages, and start MySQL 8.4 against the existing data directory (in-place upgrade). Fourth, replace any removed system variables in my.cnf (the big one is default_authentication_plugin → authentication_policy). Fifth, sort out mysql_native_password: 8.4 disables the plugin by default and accounts that use it cannot log in, so either migrate them to caching_sha2_password or re-enable the plugin with mysql_native_password=ON before you cut over. The actual binary swap is under 5 minutes; planning around the auth-policy change is what takes time.
Jump to:
- What changed between 8.0 and 8.4
- Pre-flight: upgrade checker and backup
- The in-place upgrade
- Removed system variables
- The authentication_policy change
- Re-enabling mysql_native_password
- Verify the upgrade
- Rollback
- What to do next
- FAQ
What changed between 8.0 and 8.4
The 8.0 → 8.4 boundary is the first time Oracle has actually removed long-deprecated 8.0 features rather than just warning about them. The headlines:
| Change | Impact |
|---|---|
default_authentication_plugin removed | Replace with authentication_policy, or just delete the line: the default plugin is already caching_sha2_password |
mysql_native_password disabled by default | Accounts that use it cannot connect until you re-enable the plugin or move them to caching_sha2_password |
expire_logs_days removed | Use binlog_expire_logs_seconds |
Old replication statements removed (CHANGE MASTER TO, START SLAVE, SHOW SLAVE STATUS, SHOW MASTER STATUS, RESET MASTER) | Use CHANGE REPLICATION SOURCE TO, START REPLICA, SHOW REPLICA STATUS, SHOW BINARY LOG STATUS, RESET BINARY LOGS AND GTIDS in scripts and monitoring |
Startup options removed: --skip-host-cache, --ssl, --admin-ssl, --old, --new, --language | --host-cache-size=0 replaces --skip-host-cache; --tls-version and --admin-tls-version replace the SSL pair |
mysql_upgrade, mysqlpump, and mysql_ssl_rsa_setup utilities removed | The server upgrades itself on start; use mysqldump or MySQL Shell's dump utilities in place of mysqlpump |
keyring_file, keyring_encrypted_file, keyring_oci plugins removed | Move to the matching component_keyring_* component before upgrading |
authentication_fido plugin removed | Use authentication_webauthn |
| Group Replication defaults changed | group_replication_consistency is now BEFORE_ON_PRIMARY_FAILOVER (was EVENTUAL); group_replication_exit_state_action is now OFFLINE_MODE (was READ_ONLY) |
| InnoDB defaults changed | See below; not breaking, but I/O behavior shifts if you relied on the old defaults |
Two things that are often listed as 8.4 removals are not. The query cache and its query_cache_* variables were removed back in MySQL 8.0.3, so a my.cnf that still carries them would not have started on 8.0 either. And default_password_lifetime and skip_networking both still exist in 8.4 (an earlier version of this page listed them as removed, which was wrong); leave them alone.
8.4 itself is light on headline features, because most new work went into the 9.x Innovation line. The VECTOR data type and its functions, for example, arrived in MySQL 9.0, not 8.4. What 8.4 does change is a batch of InnoDB defaults: innodb_io_capacity goes from 200 to 10000, innodb_adaptive_hash_index from ON to OFF, innodb_change_buffering from all to none, innodb_log_buffer_size from 16 MiB to 64 MiB, and innodb_flush_method on Linux becomes O_DIRECT where the filesystem supports it. None of those break the upgrade. If you tuned around the old defaults, set the values explicitly in my.cnf before you compare performance.
Pre-flight: upgrade checker and backup
Run the upgrade checker. The MySQL Shell version is the more thorough one:
mysqlsh -- util check-for-server-upgrade \
'{"user":"root","host":"localhost","password":"YOUR_PASSWORD"}' \
--target-version=8.4.0 \
--output-format=JSONErrors must be fixed before the upgrade. Warnings should be reviewed but rarely block.
Take a full logical backup:
mysqldump \
--all-databases \
--single-transaction \
--master-data=2 \
--routines \
--triggers \
--events \
--hex-blob \
| gzip > mysql-8.0-pre-8.4-$(date +%Y%m%d-%H%M).sql.gzThe same backup-everything principle applies as in the 5.7 to 8.0 migration. The data dictionary doesn't change in shape from 8.0 to 8.4 the way it did from 5.7 to 8.0, but it does get rewritten on startup. Rollback after the first 8.4 start requires the dump.
The in-place upgrade
# 1. Stop MySQL 8.0
sudo systemctl stop mysql
# 2. Replace apt source from 8.0 to 8.4 LTS
wget https://dev.mysql.com/get/mysql-apt-config_0.8.32-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.32-1_all.deb
# (select MySQL 8.4 LTS in the config dialog)
sudo apt update
# 3. Install 8.4 (keeps existing /var/lib/mysql)
sudo apt install -y mysql-server
# 4. Start it
sudo systemctl start mysql
# 5. Tail the error log during first start
sudo tail -f /var/log/mysql/error.log8.4 detects the older data directory on first start and runs the upgrade automatically. Same integrated mysql_upgrade flow that 8.0.16+ introduced.
Removed system variables
The single most common upgrade failure is MySQL refusing to start because of an unknown system variable in my.cnf. The variables and options removed in 8.4 that I see most often in real config files:
| Removed in 8.4 | Replacement |
|---|---|
default_authentication_plugin | authentication_policy |
expire_logs_days | binlog_expire_logs_seconds (8.0 also had this) |
binlog_transaction_dependency_tracking | none; the server always uses writesets now, so delete the line |
transaction_write_set_extraction | none; delete the line |
master_info_repository, relay_log_info_repository | none; crash-safe tables are the only option now |
skip-host-cache | host_cache_size=0 |
ssl, admin_ssl | tls_version, admin_tls_version |
avoid_temporal_upgrade, show_old_temporals | none; delete the lines |
group_replication_ip_whitelist | group_replication_ip_allowlist |
group_replication_recovery_complete_at, group_replication_primary_member | none; delete the lines |
keyring_file_data, keyring_encrypted_file_data | settings of the component_keyring_file and component_keyring_encrypted_file components |
default_password_lifetime, skip_networking, and skip_name_resolve are still valid in 8.4. The query_cache_* variables are gone, but they went in 8.0.3, not at this boundary.
Before starting 8.4, grep your my.cnf:
grep -E "^(default[-_]authentication[-_]plugin|expire[-_]logs[-_]days|binlog[-_]transaction[-_]dependency[-_]tracking|transaction[-_]write[-_]set[-_]extraction|(master|relay[-_]log)[-_]info[-_]repository|skip[-_]host[-_]cache|(admin[-_])?ssl *(=|$)|avoid[-_]temporal[-_]upgrade|show[-_]old[-_]temporals|group[-_]replication[-_](ip[-_]whitelist|recovery[-_]complete[-_]at|primary[-_]member)|keyring[-_](encrypted[-_])?file[-_]data)" \
/etc/mysql/mysql.conf.d/*.cnf /etc/mysql/my.cnf 2>/dev/nullEvery hit is something you need to either remove or replace before starting MySQL 8.4. If MySQL refuses to start after the upgrade, the error log will name the offending variable.
The authentication_policy change
The authentication_policy variable (introduced in 8.0.27, the only knob left in 8.4) controls which plugins are valid for new users and what the default is. In 8.0 you had:
# 8.0 style
[mysqld]
default_authentication_plugin = caching_sha2_passwordIn 8.4 the default policy is '*,,', and with that value new accounts already get caching_sha2_password. So for most installations the fix is simply to delete the old line. If you want the default spelled out:
# 8.4 style
[mysqld]
authentication_policy = '*:caching_sha2_password,,'The policy is a comma-separated list of one to three elements, one per authentication factor. Each element takes one of four forms: * (the factor is required, any plugin allowed), plugin_name (the factor is required and must use that plugin), *:plugin_name (the factor is required, that plugin is the default, others are still allowed), or empty (the factor is optional). Empty elements have to come last, which is why the trailing commas are significant: '*,,' means one required factor plus an optional second and third. Note the difference between the two named forms: 'caching_sha2_password,' does not set a default, it forbids every other plugin for the first factor.
For multi-factor setups (since 8.0.27):
# Force MFA: caching_sha2_password + authentication_webauthn for second factor
authentication_policy = 'caching_sha2_password,authentication_webauthn,'The empty third slot means a third factor is optional. To make it required, name a plugin.
Re-enabling mysql_native_password
This is the new-in-8.4 friction. mysql_native_password is disabled by default, and that affects existing accounts, not only new ones. An account that authenticates with it cannot connect to an 8.4 server at all. Oracle's manual shows the client getting ERROR 1045 (28000): Access denied. On the stock mysql:8.4 Docker image (8.4.11), with an account created while the plugin was on and the server then restarted without it, the mysql client gets ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded instead, so treat either message on a legacy account as this problem. CREATE USER and ALTER USER ... IDENTIFIED WITH mysql_native_password fail with the 1524 error. To opt back in:
[mysqld]
# 8.4: load the legacy plugin so mysql_native_password accounts can log in again
mysql_native_password = ON
# optional: also make it the default for new accounts (other plugins stay allowed)
# authentication_policy = '*:mysql_native_password,,'Then restart MySQL. Put this in my.cnf before the first 8.4 start if any application account still uses the plugin, or those applications are locked out the moment the upgrade finishes. This is the right answer when you have legacy PHP / Python / Node.js clients that don't speak caching_sha2_password and updating the client driver isn't possible in the same maintenance window. Once a client is updated, move its account across with ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY '...';.
The long-term answer is to update the clients. See the client driver support matrix in the 5.7 to 8.0 migration for the version requirements; the same matrix applies to 8.4. mysql_native_password was removed outright in MySQL 9.0.0 (July 2024), so it does not exist in the 9.7 LTS line that follows 8.4. Re-enabling it buys time on 8.4 and nothing more.
Verify the upgrade
After 8.4 starts cleanly:
-- Server version
SELECT VERSION();
-- → 8.4.0 (or whichever 8.4.x you installed)
-- Confirm the LTS marker
SELECT @@version_comment;
-- Authentication policy
SHOW VARIABLES LIKE 'authentication_policy';
-- → *,, (unless you set it)
-- Is the legacy plugin loaded? DISABLED is the 8.4 default, ACTIVE after mysql_native_password=ON
SELECT plugin_name, plugin_status
FROM information_schema.plugins
WHERE plugin_name = 'mysql_native_password';
-- User plugin distribution
SELECT plugin, COUNT(*) FROM mysql.user GROUP BY plugin;mysql_native_password is a startup option, not a system variable, so SHOW VARIABLES LIKE 'mysql_native_password' returns nothing; the information_schema.plugins query above is the check that works.
Run application smoke tests next. A common gotcha: any application account that still authenticates with mysql_native_password fails to log in on 8.4 until you re-enable the legacy plugin or move the account to caching_sha2_password.
Rollback
8.4 rewrites the system schema on first start. Rollback to 8.0 is not supported through the binary path. The only rollback is restore from the pre-upgrade logical dump:
sudo systemctl stop mysql
sudo apt remove --purge mysql-server
# Re-install 8.0 packages from the old apt source
sudo dpkg -i mysql-apt-config_0.8.29-1_all.deb # select 8.0
sudo apt update && sudo apt install -y mysql-server
sudo systemctl stop mysql
sudo rm -rf /var/lib/mysql
sudo mysqld --initialize-insecure --user=mysql
sudo systemctl start mysql
gunzip < mysql-8.0-pre-8.4-*.sql.gz | mysql -u rootA logical restore at scale takes hours. Test the upgrade on a replica or staging copy before touching the primary.
What to do next
After 8.4 is up:
- How to Reset a Forgotten MySQL Root Password: the 8.4 syntax is slightly different.
- utf8 to utf8mb4 Migration in MySQL:
utf8is still deprecated and the deprecation message in 8.4 is louder. - MySQL Cheat Sheet: for the verification queries above.
- How to Export All MySQL Databases with mysqldump: for the post-upgrade backup cadence.
External references:
- MySQL 8.4 Reference Manual: Upgrading MySQL
- Features added, deprecated, and removed in 8.4
- lefred: the new default authentication plugin in MySQL 8.4
FAQ
Yes. MySQL 8.4 LTS gets Premier (bug-fix) support through April 2029 and Extended (security-only) support through April 2032. The new release cadence promises a new LTS every two years, and the next one arrived on schedule: MySQL 9.7 LTS went GA on 21 April 2026, with Premier support through April 2031.
MySQL 8.0 reached the end of Extended support on 30 April 2026, so it should not be the target of anything new. For a new deployment today the choice is between 8.4 LTS and 9.7 LTS; the Innovation releases in between are explicitly short-lived.
No. MySQL only supports upgrades between adjacent major releases. 5.7 → 8.4 is a non-supported jump; you have to go through 8.0 first. Once on the latest 8.0.x point release, you can then upgrade to 8.4 LTS.
Dump-and-restore across the gap works for the data, but you skip the data-dictionary migration steps that are part of the supported path.
They stop being able to log in. MySQL 8.4 disables the mysql_native_password plugin by default, and an existing account that authenticates with it gets an error when it tries to connect. Creating or altering accounts with the plugin fails too, with ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded.
Run SELECT plugin, COUNT(*) FROM mysql.user GROUP BY plugin before the upgrade, not after. If any accounts still use mysql_native_password, either migrate them to caching_sha2_password first or add mysql_native_password=ON to my.cnf per the section above. MySQL 9.0 and later remove the plugin entirely.
No. InnoDB on-disk row format is the same between 8.0 and 8.4. Existing tables are read and written identically.
The system schema (the data dictionary, performance schema, the mysql schema) gets rewritten on first 8.4 startup. User tables are untouched.
Binary swap and first-start system-schema rewrite is typically 1-5 minutes on a database with hundreds of tables. Larger schemas (thousands of tables, complex partitioning, many stored procedures) push it to 10-20 minutes.
The variable-removal pre-flight is usually the slowest human step. Plan a 30-60 minute maintenance window for a non-trivial production database.
No, and the recommended pattern is to upgrade replicas first. Upgrade one replica to 8.4, confirm replication still flows from the 8.0 primary (cross-version replication from primary 8.0 to replica 8.4 is supported), validate applications against the replica, then promote it. Old primary becomes a replica, upgrade it last.
This gives you a zero-downtime rollback path: if 8.4 has a problem, promote a remaining 8.0 replica back to primary.
RDS for MySQL added 8.4 support in late 2024. Use aws rds modify-db-instance --engine-version 8.4.x --apply-immediately to trigger the upgrade. Aurora MySQL similarly supports 8.4-compatible engine versions.
The managed flow handles the binary swap and the data-dictionary rewrite. The auth-policy change still applies: any new RDS user created on 8.4 lands on caching_sha2_password.
No. Table data is not rewritten by the upgrade itself. The only ALTER you may want to run is for the few cases where 8.4 added smarter defaults: tables created on very old 5.x with ROW_FORMAT=COMPACT benefit from a one-time ALTER TABLE ... ROW_FORMAT=DYNAMIC to enable newer index features, but that's optional.
For utf8mb3 tables, the upgrade does not auto-convert them. Plan a separate utf8mb4 migration window.
Sources
Authoritative references this article was fact-checked against.
- endoflife.dateendoflife.date
- MySQL 8.4 Reference Manual: what is new, deprecated and removed in MySQL 8.4dev.mysql.com
- MySQL 8.4 Reference Manual: server system variables (authentication_policy)dev.mysql.com
- MySQL 8.4 Reference Manual: native pluggable authenticationdev.mysql.com
- MySQL 8.4 Reference Manual: upgrade pathsdev.mysql.com
- MySQL 8.0.3 release notes (query cache removed)dev.mysql.com
- MySQL 9.0.0 release notes (VECTOR added, mysql_native_password removed)dev.mysql.com





