Skip to content

MySQL 8.0 to 8.4 — what breaks, what is removed, what you upgrade FOR

Migration reference for the 8.0 to 8.4 LTS upgrade. Removed features, default-value changes that bite, connector compatibility, and the practical step list.

The 5.7-to-8.0 upgrade was the headline event of the past few years: an entire category of teams that had skipped it for two cycles now had to deal with the data dictionary rebuild, the authentication plugin change, and the sql_mode tightening all at once. The 8.0-to-8.4 LTS upgrade does not have that profile. The changes are smaller in surface area but sharper in edge — features that have been deprecated for several minor versions are now removed, and an Innovation Release stream that ran from 8.1 through 8.3 quietly retired some defaults that you may have set explicitly years ago and forgotten about. This is the reference for what changed, what to remove from your my.cnf, and how your application connector stack reacts.

What 8.4 LTS adds (the upgrade-FOR list)

The argument for moving from 8.0 to 8.4 is not “8.4 is faster” — micro-benchmarks are within noise on most workloads. The argument is:

  • 8.0 reaches the end of its premier support in April 2026 and extended support in April 2032. 8.4 is the LTS line. Staying on 8.0 indefinitely means staying on a release that no longer gets security patches once you fall off the support window.
  • Vector data type and vector functions (VECTOR, STRING_TO_VECTOR, VECTOR_DIM, VECTOR_TO_STRING, distance functions). Useful for AI-adjacent workloads that want to store embeddings next to relational data instead of behind a separate vector database. The implementation is early — no native index support yet — but the column type and functions are stable.
  • Generated Invisible Primary Key (GIPK) defaults. When sql_generate_invisible_primary_key=ON, tables created without an explicit primary key get an auto-generated invisible my_row_id BIGINT UNSIGNED AUTO_INCREMENT PK. This eliminates a long-standing class of replication issues where InnoDB internally generated a row ID that did not replicate consistently. Available since 8.0.30 but off by default; in 8.4 it is still off by default but the surrounding infrastructure (information_schema, mysqldump output) is finalized.
  • Replication performance baseline improvements. replica_parallel_workers default is now 4 (was 0 on 8.0). Multi-threaded replica apply is on by default for new installations, which closes a long-standing gap where write-heavy primaries would consistently outrun a single-threaded replica.
  • Replication source/replica terminology completed. The deprecated master/slave terminology that 8.0 partially renamed is now fully retired. SHOW SLAVE STATUS is removed; SHOW REPLICA STATUS is the only spelling. Tooling that grep’d the old output needs updating.

What 8.4 removes or hard-deprecates

This is the section that breaks production. Audit against this list before scheduling the cutover.

mysql_native_password authentication plugin

The single biggest break. The plugin that was deprecated in 8.0 is removed in 8.4. Any user account with plugin='mysql_native_password' cannot authenticate against 8.4 — period. The account exists in mysql.user but cannot log in.

Inventory before cutover and migrate:

-- On the 8.0 source, find every account still on the legacy plugin
SELECT user, host, plugin FROM mysql.user
 WHERE plugin = 'mysql_native_password';

-- Migrate each account
ALTER USER 'app'@'%' IDENTIFIED WITH caching_sha2_password BY '<new-password>';

-- Validate immediately from the application's machine
mysql -h <primary> -u app -p -e "SELECT user()"

There is no transition plugin in 8.4. If an application connector cannot speak caching_sha2_password, the application has to be updated before the database is.

mysql_ssl_rsa_setup utility

Removed in 8.4. The utility that generated self-signed SSL certificates and RSA key files for the server is no longer available. The server itself auto-generates certificates on startup if they do not already exist (this behavior is what the utility was wrapping). The replacement, if you need to regenerate certificates manually, is OpenSSL directly:

# Generate a CA, server cert, and client cert under /var/lib/mysql/
openssl genrsa -out ca-key.pem 2048
openssl req -new -x509 -key ca-key.pem -out ca.pem -days 3650 -subj "/CN=MySQL_CA"
openssl req -new -newkey rsa:2048 -nodes -keyout server-key.pem -out server-req.pem \
  -subj "/CN=mysql-server"
openssl rsa -in server-key.pem -out server-key.pem
openssl x509 -req -in server-req.pem -CA ca.pem -CAkey ca-key.pem \
  -CAcreateserial -out server-cert.pem -days 3650
chown mysql:mysql *.pem
chmod 600 *-key.pem

If you were calling mysql_ssl_rsa_setup from automation (Ansible, Chef, Terraform user_data), replace the call with the OpenSSL block above before the host is built on 8.4.

—skip-host-cache server option

Removed in 8.4. The replacement is host_cache_size=0 in my.cnf, which 8.0 already supported. Anything still passing --skip-host-cache on the command line in a systemd unit file or a Docker entrypoint will fail server startup.

mysql_upgrade command-line utility

Removed in 8.4. The utility’s work — upgrading system tables and the data dictionary after a server upgrade — is now performed automatically during server startup. Operationally this means: do not call mysql_upgrade from an Ansible play or post-install hook on an 8.4 host. The first start after upgrade does the work; the binary is gone.

Legacy SQL syntax retirements

  • GRANT ... IDENTIFIED BY ... syntax (combined grant + password set) was deprecated in 5.7, removed in 8.0. Still removed in 8.4. Use separate CREATE USER and GRANT statements.
  • FLUSH QUERY CACHE is no-op gone — the entire query cache subsystem was removed in 8.0 and stays removed.
  • SHOW MASTER STATUS, SHOW SLAVE STATUS, RESET SLAVE, CHANGE MASTER TO, START SLAVE, STOP SLAVE — all removed in 8.4 in favor of the REPLICA / SOURCE spellings.
  • SET @@PSEUDO_SLAVE_MODE — removed; use SET @@PSEUDO_REPLICA_MODE.

If you have replication tooling (Orchestrator, MaxScale, custom monitoring scripts) that grep SHOW SLAVE STATUS output, that tooling has to be updated for 8.4.

Default value changes that bite

Even if your my.cnf ports cleanly, several defaults changed between 8.0.x and 8.4. Anything you left unset is now different.

innodb_doublewrite behavior

8.4 ships innodb_doublewrite=ON with a new default of DETECT_AND_RECOVER (replacing the old ON integer behavior). The doublewrite buffer is more aggressive about validating page integrity on read; on a workload that runs on storage with poor underlying integrity checking (some EBS gp2 setups, certain SAN configurations), expect a small read-path overhead the first time pages are touched after restart. Run a warmup pass before cutting production traffic over.

replica_parallel_workers

Default changed from 0 (single-threaded apply) to 4 (parallel apply with default replica_parallel_type=LOGICAL_CLOCK). On a write-heavy primary, this materially reduces replica lag. On a read-heavy primary where the replica was previously idle, you may see slightly higher CPU on the replica with no other change in behavior — this is normal.

If your monitoring alerts on replica CPU above a fixed threshold, expect the default new replica baseline to be 5-15% higher and adjust the threshold before cutover or you will get alert noise on the new node.

Persistent statistics on partitioned tables

8.4 changed how persistent statistics are collected and refreshed on partitioned InnoDB tables — the per-partition stats refresh is now triggered more aggressively after large DML. On a heavily partitioned table (think time-series data with hourly or daily partitions), expect a small increase in background I/O during sustained writes. Configurable via innodb_stats_persistent_sample_pages if it becomes a problem; default is appropriate for most workloads.

Binary log retention

binlog_expire_logs_seconds default did not change (still 30 days), but log_replica_updates is now the default on a node that has been configured as a replica — even on standalone instances. If you have a standalone 8.0 that has no replica configured but had the binlog enabled, expect slightly more disk usage on 8.4 until you set log_replica_updates=OFF explicitly.

Authentication policy

The authentication_policy variable (8.0.27+) now defaults to *,, which requires the first factor to be caching_sha2_password and explicitly allows other factors to be empty. Anything that tried to set the first factor to mysql_native_password will fail.

Configuration cleanup before upgrade

Audit my.cnf against this list on the 8.0 source before cutting over:

# REMOVE these from my.cnf — they will prevent 8.4 from starting
query_cache_type = ...
query_cache_size = ...
query_cache_limit = ...
innodb_log_file_size = ...           # replaced by innodb_redo_log_capacity in 8.0.30+
innodb_log_files_in_group = ...      # same
skip-host-cache                       # replaced by host_cache_size=0

# REVIEW these — defaults changed
default_authentication_plugin = mysql_native_password   # not valid on 8.4
replica_parallel_workers = 0          # default is now 4; explicit value still respected

# SET these explicitly to avoid surprise on first 8.4 boot
authentication_policy = caching_sha2_password
innodb_redo_log_capacity = 4G          # or whatever your old log files summed to
host_cache_size = 128                  # if you want host cache; 0 disables

Dry-run the my.cnf against an 8.4 instance in staging:

mysqld --defaults-file=/etc/mysql/my.cnf --validate-config
# Exit code 0 = config parses; nonzero = error in cnf

Connector compatibility matrix

The wire-protocol layer between 8.0 and 8.4 has not changed in a breaking way, but the authentication default has implications for older connectors. The following table is the current state of widely-used MySQL drivers — confirm against the connector’s own release notes for the exact patch version before relying on it.

ConnectorMinimum version for caching_sha2_passwordNotes
MySQL Connector/J (Java)8.0.x or 9.x (Connector/J 9.x is the 8.4-aligned line)Connector/J 5.1 cannot authenticate; upgrade is mandatory.
mysqlclient (Python)2.0+Built against libmysqlclient 8.0+; older libmysqlclient bundled in OS packages may not.
PyMySQL1.0+Pure-Python; supports caching_sha2_password natively from 1.0.0.
mysql2 (Node.js)2.2+The package most teams use; supports caching_sha2_password fully.
node-mysql (the older one)not supportedProject is effectively abandoned; migrate to mysql2.
php-mysqlndPHP 7.4+ recommended; PHP 7.2 with mysqlnd 8.0+ works in some configurations but is not officially supported.Older PHP builds linking against libmysqlclient may need libmysqlclient 8.0+ on the box.
Go go-sql-driver/mysqlv1.5+All currently-maintained versions support it.
Rust mysql_async0.30+Modern Rust crates are fine.
Ruby mysql2 gem0.5+Most Rails apps are already on this.

The connector check is the single highest-payoff pre-cutover task. If you cannot test from production application hosts directly, replicate the connector chain (same OS, same library versions, same PHP/Java/Python build) in staging and run an authentication probe against the 8.4 instance there.

Step-by-step from 8.0.x to 8.4 LTS

For the in-place upgrade pattern (a single host, accepting some restart downtime — usually 1-5 minutes):

  1. Snapshot the data directory. LVM, EBS, GCP persistent disk — whatever you have. Keep it for 48 hours.
  2. Update the package repo to the 8.4 LTS release. On Debian/Ubuntu, this is the mysql-apt-config re-run; on RHEL/Rocky, the new yum repo file.
  3. Stop the application’s writes (or accept the upgrade window).
  4. Stop MySQL: systemctl stop mysql.
  5. Install the 8.4 packages: apt install mysql-server (with the 8.4 repo in place). Read the package post-install messages — they call out any my.cnf items that are now invalid.
  6. Start MySQL: systemctl start mysql. First start runs the data dictionary upgrade automatically; this takes 30 seconds to several minutes on a large schema. Watch journalctl -u mysql -f.
  7. Run the application’s authentication probe. Every connector class should authenticate. Anything that fails here is the connector layer, not the database — fix on the application side.
  8. Resume application writes.
  9. Monitor for 24 hours per the post-cutover watch checklist.

For the zero-downtime path — application traffic never stops, write read-only window is 5-30 seconds — use the replica-seed cutover sequence from the zero-downtime upgrade runbook. That runbook is the operational unit; this article is the reference for what changed between the two specific versions involved.

See also