Home / Guides

Check MySQL 8.0 before you upgrade to 8.4 LTS

Checked against the MySQL EOL notice (opens in new tab), the Oracle Lifetime Support Policy (opens in new tab) (effective Oct 2, 2026), MySQL Shell 26.10 release notes and the upgrade checker page (opens in new tab), the MySQL 8.4 what's-new page (opens in new tab), Percona Toolkit 3.7.2 docs, and the AWS and Azure pages linked below.

This is the check to run before an 8.0 to 8.4 upgrade on a server you run yourself, or on RDS for MySQL, Aurora MySQL, or Azure Database for MySQL. The checker reads the instance. It does not upgrade it. Support dates for the cloud services stay on those pages. The paste checker only tells you which version you are on.

Which end-of-life date you are planning against

Oracle's lifetime support table lists MySQL 8.0 as GA April 2018, Premier Support through April 2025, and Extended Support through April 2026. Sustaining Support is indefinite. The EOL notice (opens in new tab) says that as of April 21, 2026, MySQL 8.0 is under Sustaining Support, and points people at MySQL 8.4 LTS or 9.7 LTS. The 8.0 release notes (opens in new tab) call 8.0.46 the end of the series. Sustaining Support does not include new fixes.

MySQL 8.4 is the LTS that follows 8.0. The same policy lists Premier Support through April 2029 and Extended Support through April 2032. The upgrade checker documents an LTS-to-next-LTS check as 8.0 to 8.4. MySQL 9.7 is a later LTS (GA April 2026 in that policy). This page does not cover a jump from 8.0 to 9.7.

RDS, Aurora, and Azure publish their own windows, and those windows are the ones on the service pages. Oracle's April 2026 date is the upstream cutoff. Use the service page when the database is a cloud instance.

What is current, and what in the docs is stale

MySQL Shell 26.10.0 (opens in new tab) is the release Oracle tells you to install. The download page says it is backwards compatible with supported server versions, and the 26.10 manual (opens in new tab) says to use it with any GA MySQL 8.0 or later. The 26.10.0 notes include an upgrade-checker fix: valid optimizer_switch values were reported as invalid (bug 39875290). An older Shell will miss that fix, and a Shell older than the target cannot select that target.

The checker chapter in that manual is current enough to run, and two parts of it are stale:

percona/percona-toolkit (opens in new tab) is not archived. v3.7.2 (opens in new tab) was released Oct 22, 2026. The tool index still lists pt-upgrade (opens in new tab) and pt-config-diff (opens in new tab), and both manual pages say version 3.7.2. The 3.7 line fixed pt-config-diff truncating variable values past 1024 characters, ignoring --ignore-case, and not sorting variable flags. Those options match the 3.7.2 page.

The pt-upgrade page's worked example still prints MySQL 5.1.68 and MySQL 5.5.10. That sample is old. The synopsis, the comparison rules, and the version line are the 3.7.2 text. There is no 8.4-specific mode in the manual.

Run the upgrade checker for 8.4

Install Shell from the download page (opens in new tab) or your package repo, then confirm the binary:

mysqlsh --version

The account needs PROCESS and SELECT. The utility opens its own session, over classic protocol or X Protocol. Shell's default language mode is SQL, so either switch to JavaScript or use the mysqlsh -- util form. The password is prompted for when you leave it out.

mysqlsh -- util check-for-server-upgrade { --user=admin --host=db.example.com --port=3306 } --target-version=8.4.0

mysqlsh --js --uri admin@db.example.com:3306 -e "util.checkForServerUpgrade({targetVersion: '8.4.0'})"

From inside a JavaScript session that is already connected:

util.checkForServerUpgrade({targetVersion: "8.4.0"})
util.checkForServerUpgrade({targetVersion: "8.4.0", outputFormat: "JSON"})
util.checkForServerUpgrade({list: true, targetVersion: "8.4.0"})

Python is util.check_for_server_upgrade({"targetVersion": "8.4.0"}) and needs --py. list: true prints each check id, what it does, and which versions it applies to, and it does not scan the server.

targetVersion accepts a release from 8.0.11 up to the Shell version. 8.4.0 selects the 8.4 checks. If you already know the patch, pass that patch, for example 8.4.7, so checks added in later 8.4 releases are included. The command-line flag is --target-version. The dictionary key is targetVersion.

configPath is the local path of my.cnf or my.ini. The manual says that if you omit it and a check needs the file, that check fails and tells you to pass the path. A failed check is not a clean result. Pass the file on a server you administer:

mysqlsh -- util check-for-server-upgrade { --user=admin --host=db.example.com --port=3306 } \
  --target-version=8.4.0 --config-path=/etc/mysql/my.cnf

RDS, Aurora, and Azure do not give you that file. The sysvar check still sees variables set to a non-default value on the running instance. Variables the platform sets, and that you cannot edit, show up there. The provider precheck is what decides whether those block the managed upgrade. Read that log before you chase a variable the console will not let you change.

Errors, warnings, and notices

Text output ends with three counts. This is the summary from the manual's sample, which is the 5.7-to-8.0 run, so the numbers are that sample's numbers:

Errors:   7
Warnings: 36
Notices:  0

7 errors were found. Please correct these issues before upgrading to avoid compatibility issues.

The chapter states the rule that goes with those counts. Errors are changes required before the instance can be upgraded to the target. Warnings are worth fixing, and the instance can still be upgraded while they remain. Notices are informational, including checks the utility cannot automate and wants you to do by hand. Clear the errors, then read the warnings and notices. A zero error count with warnings still left is a successful checker run and an unfinished review.

outputFormat: "JSON" uses errorCount, warningCount, noticeCount, and summary. Each entry in checksPerformed has an id, a title, and a status. status is OK when the check ran, and ERROR when the check itself failed (the manual's example causes are a timeout, a restart, or an interrupted query). That ERROR is not a finding. Findings are in detectedProblems, and each one's level is Error, Warning, or Notice. dbObject names the schema object, account, or variable. An empty detectedProblems array with status OK is a check that ran and found nothing. status ERROR means you do not yet know.

The checks that matter for 8.0 to 8.4, from the current check list:

What usually blocks 8.0 to 8.4

The full removal list is What Is New in MySQL 8.4 since MySQL 8.0 (opens in new tab). The variable list is the added, deprecated, or removed options (opens in new tab) section. These are the ones that show up in the checker and in the cloud prechecks.

Authentication

From 8.4.0, the mysql_native_password plugin is disabled by default. It is still part of the server. Turn it on with --mysql-native-password=ON, or with mysql_native_password=ON under [mysqld]. New accounts follow authentication_policy. Aurora MySQL 8.4 still accepts the plugin and marks it deprecated; its default authentication_policy is *:caching_sha2_password. Find the accounts before you care about the default:

SELECT user, host, plugin FROM mysql.user WHERE plugin = 'mysql_native_password';

default_authentication_plugin was removed in 8.4.0. A parameter group or my.cnf that still sets it will fail at startup. The replacement is authentication_policy. The Shell sample that tells you to set default_authentication_plugin is the 8.0-upgrade sample.

Plugins the 8.4 manual lists as removed, which is a different list from mysql_native_password: authentication_fido (replacement authentication_webauthn), keyring_file, keyring_encrypted_file, keyring_oci, and openssl_udf. Clients and ORMs have to speak caching_sha2_password. An old connector fails the handshake even when the checker is clean.

Removed system variables

Setting a removed variable is an error on 8.4. The ones that still sit in 8.0 parameter groups:

Build a new 8.4 parameter group or option file. Copying the 8.0 group forward keeps the removed names. On a managed service, drop the ones you set. Leave the ones the platform owns to the provider precheck.

Reserved words, SQL, and table definitions

Reserved words added in 8.4 are MANUAL, PARALLEL, QUALIFY, and TABLESAMPLE. AUTO, BERNOULLI, GTIDS, LOG, PARSE_TREE, and S3 were added as non-reserved keywords. reservedKeywords reports objects whose names now need quoting, or a rename. Quoting in the application has to match. Renaming a column is the durable fix.

These statements were removed: CHANGE MASTER TO, RESET MASTER, SHOW MASTER STATUS, SHOW SLAVE STATUS, START SLAVE, STOP SLAVE, and the rest of the MASTER/SLAVE syntax in the what's-new list. The replacements are CHANGE REPLICATION SOURCE TO, SHOW REPLICA STATUS, START REPLICA, and so on. Scripts and ORMs that still send the old statements get a syntax error after the upgrade. The checker sees them when they are in a routine, trigger, or event. It does not see them in application code.

AUTO_INCREMENT on a FLOAT or DOUBLE column fails the upgrade until you change the column. Key partitioning on a column that uses a prefix index is rejected. Foreign keys that reference a non-unique or partial index can remain through an upgrade from 8.0; the server writes a warning naming them. Creating a new one of those foreign keys is rejected by default in 8.4 (restrict_fk_on_non_standard_key). LOW_PRIORITY on LOCK TABLES ... WRITE is a syntax error. FLUSH HOSTS was removed; the replacement is TRUNCATE TABLE performance_schema.host_cache.

Percona Toolkit, after you have an 8.4 copy

Both tools are in the maintained 3.7.2 release. Run them against a restored snapshot or a replica that is not taking writes. They answer a different question from the Shell checker: whether the config and the queries still behave.

pt-config-diff

Diffs SHOW VARIABLES between two servers, or an option file against a server. No output means no difference. Exit 0 means no difference, exit 1 means there is one. Only variables present on every source are compared, so a short my.cnf compared with a live server reports the overlap, not every server default.

pt-config-diff h=mysql80.example.com h=mysql84.example.com
pt-config-diff /etc/my.cnf h=mysql84.example.com --no-version-check

--version-check defaults to on and opens a connection to Percona's version-check service. --no-version-check skips that. --ignore-case defaults to on, which is the 3.7 fix. Values longer than 1024 characters used to be truncated in the comparison; that is fixed in this line, and the report width still truncates what you see on screen (--report-width, default 78).

pt-upgrade

Replays a slow log, general log, binary log, tcpdump, or raw log on two servers and compares row count, row data, warnings, query time, and errors. The first host, or the saved results, is the baseline. The manual says to run it on static test servers. A live primary produces false diffs because the rows change under the tool. By default it runs only SELECT and SET, with autocommit=1, and it has no throttle.

pt-upgrade h=mysql80.example.com h=mysql84.example.com slow.log
pt-upgrade h=mysql80.example.com --save-results mysql80-results/ slow.log
pt-upgrade mysql80-results/ h=mysql84.example.com

Query time is reported when the 8.4 run is an order of magnitude slower. Row data treats whitespace and float precision as differences. That is the comparison. It is not a list of removed syntax, and a clean pt-upgrade run does not mean the Shell checker is clean. The 5.1-versus-5.5 sample in the manual is leftover. The commands above are the 3.7.2 synopsis, with the hosts named for this upgrade.

RDS for MySQL prechecks

RDS supports an in-place major upgrade (opens in new tab) from 8.0 to 8.4, and from 5.7 to 8.0. It does not apply the major upgrade for you. Apply pending OS updates first. A major upgrade also needs a parameter group for the 8.4 family. RDS empties mysql.slow_log and mysql.general_log during the upgrade. Copy them first if you still need them.

The prechecks are mandatory and run while the instance is still up. They include the MySQL checks and checks RDS added. If they find an incompatibility, RDS cancels the upgrade before it stops the instance and writes PrePatchCompatibility.log. Most entries link to the MySQL page that explains the object. The analysis itself uses CPU and extends the upgrade window, including when the result is a cancel.

In the console: Databases, the instance, Logs and events, then the Logs section. Search for PrePatchCompatibility and choose View. The CLI, from the log download page (opens in new tab), with --starting-token 0 so you get the whole file:

aws rds describe-db-log-files --db-instance-identifier my-db-instance

aws rds download-db-log-file-portion \
  --db-instance-identifier my-db-instance \
  --log-file-name PrePatchCompatibility.log \
  --starting-token 0 --output text

The RDS knowledge center (opens in new tab) says an ERROR line has to be corrected before you try again, and a WARNING means RDS did not find a fatal error. Read the warnings anyway. The 8.0-to-8.4 list on the major-upgrade page calls out obsolete data types and functions, triggers with an empty definer, reserved words, mysql schema table names that collide with the 8.4 data dictionary, obsolete sql_mode flags, ENUM or SET elements over 255 characters, and features 8.4 removed. utf8mb3 is a review item, not an automatic cancel, and RDS points at Blue/Green if you want to convert character sets with a staged cutover.

If the upgrade starts and then fails, RDS rolls the instance back to 8.0 and emits event RDS-EVENT-0188. The details of that failure are in upgradeFailure.log, which is a different file from the precheck log. Pending parameter changes get applied during that restart and stay applied after the rollback.

Aurora MySQL version numbers and prechecks

Aurora's major version is not the MySQL community version until 8.4. From the major-version upgrade page (opens in new tab):

The 8.4 upgrade procedure (opens in new tab) allows an in-place upgrade from version 3 to version 8.4. A direct upgrade from version 2 to version 8.4 is not supported. Version 2 goes to version 3 first. The procedure's own preparation list is the Aurora-specific form of the blockers above: migrate mysql_native_password accounts, replace SHOW SLAVE STATUS and CHANGE MASTER TO, drop removed parameters such as expire_logs_days and default_authentication_plugin from custom parameter groups, fix AUTO_INCREMENT on FLOAT or DOUBLE, and quote or rename the new reserved words. Test on a clone.

Aurora runs its prechecks in addition to the community checker, including for version 3 to version 8.4. They run on the writer while it is online. Errors cancel the upgrade. The major-upgrade log file is upgrade-prechecks.log. That is the name in the Aurora precheck page (opens in new tab). PrePatchCompatibility.log is the name RDS for MySQL uses, and the name Aurora's minor-version patching page uses. For this major upgrade, open upgrade-prechecks.log on the writer.

Same console path: the writer instance, Logs and events, Logs. The CLI shape from Aurora's upgrade-failure page:

aws rds describe-db-log-files --db-instance-identifier my-cluster-writer

aws rds download-db-log-file-portion \
  --db-instance-identifier my-cluster-writer \
  --log-file-name upgrade-prechecks.log \
  --starting-token 0 --output text

The log is JSON. errorCount blocks the upgrade. warningCount and noticeCount do not, and Aurora tells you to read them. detectedProblems[].level is Error, Warning, or Notice. status on a check is whether the precheck query ran: OK means it ran, ERROR means it did not, so an empty finding list next to ERROR is an unfinished check. A failed precheck raises a cluster event whose text names upgrade-prechecks.log. A precheck that completes with no errors says so, and still asks you to review warnings and notices. The per-check writeups for version 3 to 8.4 are on the precheck descriptions page (opens in new tab).

Blue/Green as the upgrade path

RDS Blue/Green Deployments (opens in new tab) cover RDS for MySQL. Aurora Blue/Green Deployments (opens in new tab) cover Aurora MySQL. The green environment is a copy kept in sync with production. You can upgrade the engine version there, run the application against it, and switch over when the test holds. Switchover typically takes under a minute, with no data loss, and the green endpoints are renamed to the blue names so the application keeps its connection string. The old production instance is renamed with an -old suffix and left read-only until you delete the deployment.

Both user guides say to keep the green databases read-only while you test. Writes on green can conflict with replication and can land in production after switchover. On RDS for MySQL, writes are enabled by setting read_only from 1 to 0 after the parameter group has synced. On Aurora MySQL, set read_only to 0 and reboot the instance. Schema changes that rename columns or tables break replication to green.

Switchover runs guardrails first: replication health, replica lag inside the timeout you set (30 seconds to one hour, default five minutes), and no active writes on green. If it exceeds the timeout, RDS rolls the switchover back and leaves both environments as they were. Promoting the green cluster from the Actions menu is a different operation. It breaks replication and puts the deployment into an invalid configuration.

If the upgrade of the green instance fails, read its precheck log (RDS: PrePatchCompatibility.log, Aurora major: upgrade-prechecks.log) and the recent events, fix the objects, and upgrade that green instance again. Do the Shell checker against the blue instance first, so the green upgrade is a confirmation. The RDS for MySQL 8.0-to-8.4 database blog (opens in new tab) describes creating the green environment at the current engine version and upgrading it afterwards, so a failed precheck does not force you to rebuild the deployment. That sequence is the blog's. The user guide is the one that defines switchover.

Azure Database for MySQL Flexible Server

Major version upgrade is documented on how to upgrade (opens in new tab). The November 2026 what's-new note (opens in new tab) says the portal's Validate action now covers 8.0 to 8.4, and that this validation is in preview. In the Upgrade pane, choose Validate and set the target version to 8.4. It checks the server and the schema and lists what to fix. Microsoft's note on that preview says to also run the Oracle upgrade checker and to regression-test the application. Treat Validate as the Azure check, and the Shell command above as the second one. A preview check is not a reason to skip the Shell run.

The how-to page states the constraints around that upgrade:

Deprecated sql_mode flags are a known cause of a failed Azure deployment. Clear them in Server parameters before you start, which is the same obsoleteSqlModeFlags check the Shell runs. Azure support dates for 8.0 and 8.4 are on the Azure MySQL page, not the Oracle April 2026 date.

Pre-upgrade checklist

  1. Decide which date you are on. Oracle Extended Support for 8.0 ended in April 2026 (Sustaining Support from April 21, 2026). The RDS, Aurora, and Azure dates are on the RDS MySQL, Aurora MySQL, and Azure MySQL pages.
  2. Install MySQL Shell 26.10.0. Run util.checkForServerUpgrade with targetVersion 8.4.0, or the 8.4 patch you will install. Do not omit the target on Shell 26.10.
  3. Fix every Error. Read every Warning and Notice. A check whose JSON status is ERROR did not finish. Run it again. Pass configPath when you have the option file.
  4. Accounts using mysql_native_password. Removed variables in the parameter group, in particular default_authentication_plugin and expire_logs_days. Object names that are now reserved: MANUAL, PARALLEL, QUALIFY, TABLESAMPLE. AUTO_INCREMENT on FLOAT or DOUBLE. Key partitioning on a prefix index. Application SQL that still says SHOW SLAVE STATUS or CHANGE MASTER TO. Client libraries that only speak the old authentication plugin.
  5. Restore a copy and upgrade that copy. On RDS or Aurora, prefer a Blue/Green deployment, upgrade the green environment, and keep it read-only while you test. On Azure, run Validate (preview for 8.0 to 8.4) and the Shell checker, upgrade replicas first, clear XA RECOVER, and take the on-demand backup.
  6. Read the provider log before you retry. RDS writes PrePatchCompatibility.log, and upgradeFailure.log if a started upgrade rolls back. Aurora's major-upgrade log is upgrade-prechecks.log on the writer.
  7. On the 8.4 copy, pt-config-diff against the 8.0 variables, then pt-upgrade of a slow log. Both are in Percona Toolkit 3.7.2. Run pt-upgrade on static copies. Then upgrade production.

Sources

Cloud support dates are on the service pages and come from the provider. This page does not change those dates.

Follow changes via RSS Paste this into your feed reader, Slack or Teams RSS app.

Open feed