SQLNirvana by Pyro

Blog › mysql · upgrade

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:

RemovedUse instead
expire_logs_daysbinlog_expire_logs_seconds
default_authentication_pluginauthentication_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:

Setting8.0 default8.4 defaultWhat to watch
innodb_adaptive_hash_indexONOFFSome point-lookup workloads get slower; benchmark before and after
innodb_change_bufferingallnoneSecondary-index writes on spinning disks may slow down
innodb_io_capacity20010000InnoDB flushes harder in the background; fine on SSD, aggressive on HDD
innodb_log_buffer_size16 MB64 MBSlightly 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:

OldNew
SHOW SLAVE STATUSSHOW REPLICA STATUS
START SLAVE / STOP SLAVESTART REPLICA / STOP REPLICA
CHANGE MASTER TOCHANGE REPLICATION SOURCE TO
SHOW MASTER STATUSSHOW BINARY LOG STATUS

5. Things that aren't blockers but are worth fixing now

6. The upgrade itself

  1. Read the 8.4 release notes for features your application uses.
  2. Take a full backup and prove it restores.
  3. Run MySQL Shell's checker: mysqlsh -- util check-for-server-upgrade root@localhost --target-version=8.4
  4. Fix every error it reports, and the items above.
  5. Rehearse on a copy and run your application's tests against it.
  6. 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.
  7. 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.

Let SQLNirvana watch it for you

Health, tuning, security and upgrade checks every minute. Free for one server.

Start free