MySQL 8.0 to 8.4 upgrade checklist
Accounts, removed variables, changed defaults, replication syntax and a step-by-step plan: everything to check before moving a MySQL 8.0 server to 8.4 LTS.
MySQL 8.4 is the long-term support release that replaces 8.0. The upgrade is usually smooth, but a handful of changes catch people out. Work through this list on each server.
1. Accounts using mysql_native_password
In 8.4 the mysql_native_password plugin is disabled by default. Accounts that use it can't log in after the upgrade. Find them:
SELECT user, host FROM mysql.user WHERE plugin = 'mysql_native_password';
For each one, switch to the modern plugin (you need to set the password again):
ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY 'new-strong-password';
Check that every application's client library supports caching_sha2_password. Most drivers released since 2019 do. If you can't change an account in time, you can enable the old plugin on 8.4 with mysql_native_password=ON in my.cnf as a stopgap, but plan to remove it: it's deprecated and uses weak SHA-1 hashing.
2. Settings that no longer exist
If my.cnf contains a removed variable, mysqld refuses to start. Common ones:
| Removed | Use instead |
|---|---|
expire_logs_days | binlog_expire_logs_seconds |
default_authentication_plugin | authentication_policy |
binlog_transaction_dependency_tracking | (removed; WRITESET behaviour is built in) |
avoid_temporal_upgrade, show_old_temporals | (removed) |
Search your config files for each name before the upgrade, not after.
3. Defaults that changed
Several InnoDB defaults were updated for modern SSD hardware. They're usually improvements, but they change behaviour:
| Setting | 8.0 default | 8.4 default | What to watch |
|---|---|---|---|
innodb_adaptive_hash_index | ON | OFF | Some point-lookup workloads get slower; benchmark before and after |
innodb_change_buffering | all | none | Secondary-index writes on spinning disks may slow down |
innodb_io_capacity | 200 | 10000 | InnoDB flushes harder in the background; fine on SSD, aggressive on HDD |
innodb_log_buffer_size | 16 MB | 64 MB | Slightly more memory, fewer waits on big transactions |
If you want 8.0 behaviour for a setting while you test, set it explicitly in my.cnf.
4. Replication and SQL syntax
Statements using the old terms were removed. Update scripts, cron jobs and monitoring:
| Old | New |
|---|---|
SHOW SLAVE STATUS | SHOW REPLICA STATUS |
START SLAVE / STOP SLAVE | START REPLICA / STOP REPLICA |
CHANGE MASTER TO | CHANGE REPLICATION SOURCE TO |
SHOW MASTER STATUS | SHOW BINARY LOG STATUS |
5. Things that aren't blockers but are worth fixing now
- utf8mb3 tables. Deprecated, can't store emoji, and mixing them with utf8mb4 columns can stop indexes being used in joins.
- MyISAM tables. Still supported, but not crash-safe and they lock whole tables. An upgrade is a good moment to convert them to InnoDB.
- Binary logging off. Without it there's no point-in-time recovery and no replica-based upgrade.
6. The upgrade itself
- Read the 8.4 release notes for features your application uses.
- Take a full backup and prove it restores.
- Run MySQL Shell's checker:
mysqlsh -- util check-for-server-upgrade root@localhost --target-version=8.4 - Fix every error it reports, and the items above.
- Rehearse on a copy and run your application's tests against it.
- In the maintenance window: stop writes, stop MySQL, install 8.4 packages and start it. The data dictionary upgrades itself on first start. Read the error log.
- Watch latency, errors and the slow log for a day. Keep the backup until you're sure.
Rolling back: an in-place downgrade from 8.4 to 8.0 isn't supported. Your rollback is the backup from step 2, or a replica you kept on 8.0.
Our free MySQL 8.4 upgrade check finds the accounts, removed settings, changed defaults and table issues on your server in a couple of minutes.