MySQL 8.4 LTS and 9.x for WordPress hosts: what changes, what to wait for
MySQL changed its release model in 2024: Long-Term Support releases (8.4, released April 2024) for production, and Innovation releases (9.0, 9.1, …) every few months with new features and a short support window. MySQL 8.0 reached its end of life in April 2026. For WordPress servers, the practical question is which line to run and what changes when moving from 8.0, more than the headline features of 9.x such as the VECTOR type.
Problem: A host runs MySQL 8.0 on its WordPress servers and has to move before the end of support. A blog post recommends MySQL 9 for its “AI vector support” and JavaScript stored programs, and the team is unsure what WordPress needs.
Solution: Move production to the 8.4 LTS line, check the removed and changed defaults that affect WordPress (authentication plugin, deprecated options in my.cnf), test on a copy, and treat 9.x Innovation releases as a place for experiments: VECTOR columns for similarity search are available in all editions, JavaScript stored programs only in MySQL Enterprise and HeatWave.
From 8.0 to 8.4: what matters for WordPress
- Authentication:
mysql_native_passwordis disabled by default in 8.4. PHP’smysqlisupportscaching_sha2_passwordsince PHP 7.4, so current WordPress installations connect fine; very old PHP versions or clients do not. Users created with the old plugin keep working only if it is enabled withmysql_native_password=ON; better migrate them:ALTER USER 'wp'@'localhost' IDENTIFIED WITH caching_sha2_password BY '...';. - Removed options: settings that were deprecated in 8.0, such as
default_authentication_pluginandexpire_logs_days, prevent the server from starting when they remain inmy.cnf. Useauthentication_policyandbinlog_expire_logs_secondsinstead. - Changed defaults: some InnoDB defaults were raised for modern hardware (for example
innodb_io_capacityand the change buffer is disabled by default). Review the values in your tuning file instead of copying an 8.0 configuration blindly: InnoDB buffer pool tuning.
WordPress core needs nothing specific from 8.4: it works with MySQL 5.5.5+ and is tested with current versions. Plugins with complex SQL are the part to test.
The upgrade path
# on a copy of the server or a staging database mysqlsh -- util check-for-server-upgrade root@localhost --target-version=8.4.0
The MySQL Shell upgrade checker reports removed options, incompatible objects and authentication issues before the upgrade. Then: full backup, in-place upgrade of the packages (8.0 → 8.4 is supported directly), start, check the error log, and run the site’s critical paths. A replica makes this easier: upgrade the replica first, switch, then upgrade the old primary: replication with GTID.
What 9.x adds
CREATE TABLE wp_ha_embeddings (
post_id BIGINT UNSIGNED PRIMARY KEY,
embedding VECTOR(768) NOT NULL
);
INSERT INTO wp_ha_embeddings VALUES (42, STRING_TO_VECTOR('[0.012, -0.031, ...]'));
The VECTOR type stores arrays of floats, for example text embeddings for “related posts by meaning”. In the Community edition, there is no vector index and no built-in distance function for nearest-neighbor search (DISTANCE() is part of HeatWave), so similarity has to be computed outside MySQL or with a dedicated vector database. JavaScript stored programs exist only in Enterprise and HeatWave. For a typical WordPress host, neither is a reason to run an Innovation release in production.
NOTE: MariaDB is a separate project with its own LTS releases and its own vector support (MariaDB 11.7+ has a VECTOR type with an index); many hosts run MariaDB instead of MySQL, and the notes above do not apply to it one to one.