MySQL 8.0 Is End of Life: Check and Plan Your Upgrade
MySQL 8.0 stopped getting fixes on 30 April 2026. Learn how to check your database version, back up, and move to MySQL 8.4 without breaking your site.
The short answer
MySQL 8.0 reached end of life on 30 April 2026, so it no longer gets security fixes. Check your version with SELECT VERSION(), take a backup, and plan a move to MySQL 8.4 LTS, which WordPress now recommends. On a VPS or dedicated server you can upgrade in WHM; on shared hosting, ask your host.
Reading options
On this page
- What MySQL 8.0 end of life actually means
- Before you start
- Check your version and prepare
- Upgrade on a VPS or dedicated server with WHM
- Other hosting setups
- A made-up example
- How to check it worked
- Troubleshooting
- Pro tips and security notes
- The one message worth forwarding
- Reader questions
- Sources & further reading
MySQL 8.0 is already end of life. According to endoflife.date, its support ended on 30 April 2026, and the last 8.0 release, 8.0.46, came out on 7 April 2026. WordPress now recommends MySQL 8.4 or MariaDB 10.11 or newer, so if your site still runs on 8.0, you are on a version that no longer gets fixes.
By the end of this guide you will know which database version you run, what can break when you move to MySQL 8.4, and how to do the upgrade safely or ask your host to do it.
What MySQL 8.0 end of life actually means
MySQL is the database server that stores your site's content: posts, users, orders, settings. "End of life" (EOL) means the vendor has stopped releasing updates for that version, including security fixes.
Think of it like a car model the maker no longer supports. The car still starts every morning. But when a part fails or a safety recall comes out, nobody is making the fix for your model any more.
That is MySQL 8.0 today. Your site does not go offline, but it runs on software that will never be patched again.
Here are the dates that matter, from endoflife.date at the time of writing (2 December 2026):
- MySQL 8.0 premier support ended on 30 April 2025.
- MySQL 8.0 reached end of life on 30 April 2026.
- MySQL 8.4 LTS was released on 30 April 2024. LTS means "long-term support", a release line that gets fixes for many years.
- MySQL 8.4 premier support runs until 30 April 2029, and its end of life is 30 April 2032.
- The latest 8.4 release listed is 8.4.13, from 30 September 2026.
Why this matters: for most sites, the natural next step is MySQL 8.4. It is the long-term line that follows 8.0, and it is the version WordPress names in its requirements.
Before you start
A database upgrade is quick when it goes well. Preparation is what makes it go well.
- Know what kind of hosting you have. On shared hosting, the host controls the database server and you cannot upgrade it yourself. On a VPS or dedicated server with WHM, you (or your server admin) can. If you are not sure, our guide on what web hosting is explains the difference.
- Have the right login. For the WHM steps you need root access to WHM, and ideally SSH access to the server as root.
- Take a fresh backup. cPanel's own documentation says to back up your server's databases before you upgrade the database version. Do it on the same day, not last month.
- Pick a quiet time. Choose a low-traffic window, such as late night in your visitors' time zone, and allow an hour even if the upgrade itself takes minutes.
- Accept that there is no simple "undo". cPanel's upgrade tool does not support downgrades. Your backup is your way back, so treat it seriously.
- List your apps. Write down every site and app that talks to the database: WordPress, a shop, a custom PHP app, a reporting tool. You will test each one afterwards.
Check your version and prepare
These steps work for everyone. Even if your host will do the upgrade, knowing your current version tells you whether you need to ask at all.
Step 1: Find your database version
The most reliable check is to ask the database server itself. The MySQL manual describes the VERSION() function, which returns the server's version string.
If you have SSH access, this command connects as the database root user and prints the server version (you will be asked for the password):
mysql -u root -p -e "SELECT VERSION();"You should see a small box with a number inside it, such as 8.0.46 or 8.4.13. Some builds add a suffix after the number, which is normal.
If the number starts with 8.0, this guide is for you. If it starts with 8.4, you are already on the current long-term line and can skip to the WordPress section.
If you use a database tool that lets you run SQL, the same query works there:
SELECT VERSION();Quick tip: on WordPress, open Tools > Site Health > Info in your dashboard. The WordPress documentation lists a Database section on that screen but does not spell out what it contains, so treat it as a hint and confirm with the query above.
Step 2: Back up every database
On a cPanel account, the Backup Wizard gives you a downloadable copy of your databases. Go to cPanel > Files > Backup Wizard, click Back Up, then under Full or Partial Backup choose MySQL Databases. Click each database file in the Download section to save it. Each one is a .sql file.
On a VPS or dedicated server, also take a full dump from the command line. This command uses mysqldump, MySQL's export tool, to write every database, including stored routines, events and triggers, into one file in the root user's home folder:
mysqldump -u root -p --all-databases --single-transaction --routines --events --triggers --result-file=/root/all-databases-before-8.4.sqlWhen it finishes, check that the file exists and is not tiny. This command shows its size:
ls -lh /root/all-databases-before-8.4.sqlYou should see a size that roughly matches your data, for example tens or hundreds of megabytes for a busy site. A file of a few kilobytes usually means something went wrong.
Heads up: copy that file off the server too, to your computer or another storage location. A backup that lives only on the machine you are about to change is half a backup.
Step 3: Check your config file for removed options
MySQL 8.4 removed several options that were only deprecated in 8.0. "Deprecated" means "still works, but will be removed later". In 8.4, later has arrived.
According to the MySQL 8.4 manual, these are gone:
default_authentication_plugin, replaced byauthentication_policy.expire_logs_days, replaced bybinlog_expire_logs_seconds. The manual says starting the server with the old option now results in an error.--skip-host-cache, replaced by--host-cache-size=0.--ssland--admin-ssl, replaced by--tls-versionand--admin-tls-version.
The main config file is usually /etc/my.cnf, and some systems also read /etc/mysql/my.cnf. MySQL treats dashes and underscores in option names as the same in most cases, so search for both spellings.
This command searches both files for any of the removed options and prints the matching lines with their line numbers:
grep -nE 'default[-_]authentication[-_]plugin|expire[-_]logs[-_]days|skip[-_]host[-_]cache|^[[:space:]]*(admin[-_])?ssl[[:space:]]*(=|$)' /etc/my.cnf /etc/mysql/my.cnf 2>/dev/nullIf nothing prints, you are clear. If lines appear, edit the file and swap each one for its replacement. For example, if your file had expire_logs_days=7 and skip-host-cache, this is what the [mysqld] section should contain instead (604800 seconds is 7 days):
[mysqld]
binlog_expire_logs_seconds=604800
host_cache_size=0For default_authentication_plugin and ssl, the simplest fix is to delete the line. The new authentication_policy uses a different syntax, so only add it if you know you need a non-default setting.
Quick tip: cPanel's upgrade screen also validates /etc/my.cnf and shows warnings before it starts. Fixing the file first means fewer surprises there.
Step 4: Find accounts that use the old password method
This is the change most likely to break a working site. In MySQL 8.4, the mysql_native_password authentication plugin is no longer enabled by default. An authentication plugin is the method the server uses to check a password.
The MySQL manual says accounts that use mysql_native_password get an error when they try to connect after the upgrade. In plain terms: your app may suddenly fail to log in to its own database.
This query lists every database user that still relies on the old method:
SELECT user, host FROM mysql.user WHERE plugin = 'mysql_native_password';If it returns no rows, you can relax. If it returns users, note them down. You will decide in the troubleshooting section whether to re-enable the old plugin for now or move those users to the newer method.
Step 5: Look out for unusual foreign keys
A foreign key is a rule that links a row in one table to a row in another, such as an order that must belong to a real customer. MySQL 8.4 rejects new foreign keys that point at non-unique or partial keys by default, through the setting restrict_fk_on_non_standard_key.
Existing tables are fine. The manual says upgrades from 8.0 are supported even with such keys, and the server writes warnings naming them. You only need to act if your app creates tables with this kind of key, which some older custom code does.
Upgrade on a VPS or dedicated server with WHM
This is the path if you run your own server with cPanel and WHM. The cPanel interface for this is called Upgrade Database Version.
Step 6: Open the upgrade screen
Log in to WHM as root and go to WHM > Home > Database Services > Upgrade Database Version. This is the path for cPanel and WHM version 120 and later. On version 118 and earlier, the same tool was called MySQL/MariaDB Upgrade under SQL Services.
Heads up: if your server runs CloudLinux with MySQL Governor installed, cPanel says MySQL upgrades will not work through this interface. In that case, follow CloudLinux's own instructions or ask your server provider.
Step 7: Choose MySQL 8.4 and confirm the warnings
You will see a list of versions. cPanel's documentation lists MySQL 8.0 and 8.4, and several MariaDB versions. Select MySQL 8.4 and click Continue.
The next screen shows warnings found while checking your server and /etc/my.cnf. Read each one. Tick the box beside each warning to confirm you have read it, then click Continue.
Step 8: Run the upgrade and watch it
cPanel offers two modes. Unattended runs the whole upgrade automatically. Interactive steps you through it. For a first upgrade, Interactive is a good choice because you see each stage.
Click Continue and keep the page open while it works. When it finishes, the screen tells you whether the upgrade succeeded or whether there are errors to fix.
Quick tip: if you are coming from something older than 8.0, you do not need to upgrade one version at a time. cPanel's MySQL upgrade information center says the system performs stepped upgrades itself, so you just pick the target version.
Step 9: Read the upgrade log
cPanel saves a log for each run in /var/cpanel/logs, named mysql_upgrade_log.YYYYMMDD-hhmmss. This command lists the upgrade logs with the newest first:
ls -lt /var/cpanel/logs/ | grep mysql_upgrade_logThis command shows the last 50 lines of the newest log, which is where errors and warnings usually appear:
tail -n 50 "$(ls -t /var/cpanel/logs/mysql_upgrade_log.* | head -n 1)"You want to see the run end without errors. Warnings about foreign keys on non-standard keys are expected if you have them, and are worth noting for your developer.
Other hosting setups
If you are on shared hosting
On shared hosting, many customers share one database server that the host manages. You cannot upgrade it yourself, and you should not need to. Your job is to find out the plan.
Run the version check from Step 1. If it shows 8.0, contact your host and ask when they will move to MySQL 8.4 and whether they will warn you first. There is a ready-to-send message at the end of this guide.
If your server uses DirectAdmin, Plesk or another panel
Each control panel has its own upgrade tool and its own rules. The preparation steps in this guide still apply: check the version, back up, clean the config file and look for old password accounts. For the actual upgrade, follow your panel's official documentation rather than the cPanel steps above.
If you run a managed database service
A managed database is one your cloud provider runs and patches for you, and providers often schedule the upgrade themselves on their own dates. For example, DigitalOcean's notice gives 30 October 2026 as the end of life for MySQL 8.0 on its managed clusters, a different date from Oracle's, and says clusters move to MySQL 8.4 during the maintenance window. Check your provider's notice and set a maintenance window that suits you.
If you run WordPress
WordPress keeps its official recommendations on the WordPress requirements page. At the time of writing it recommends PHP 8.3 or newer, and MariaDB 10.11 or newer or MySQL 8.4 or newer.
The WordPress Hosting Team goes further for new installs of WordPress 7.1, recommending MySQL 8.4.x, or MariaDB 10.11.x, 11.4.x or 11.8.x. If you are setting up a fresh site, start there.
Why this matters: the requirements page says older versions still work but have reached their official end of life and may expose your site to security vulnerabilities. Your site may run fine on 8.0 today. That is a different thing from being safe.
A made-up example
This is a made-up example, but it is a very common pattern.
Sara runs a small online shop on her own VPS with WHM. She backs up, opens Upgrade Database Version, picks MySQL 8.4 and the upgrade finishes with a green success message. Then the shop shows a database connection error.
Her shop's database user was created years ago with mysql_native_password. After the upgrade that plugin is off, so the shop can no longer log in. Nothing is lost: her data is intact and the fix takes two minutes, as shown in the troubleshooting section. If she had run the Step 4 query first, she would have known in advance.
How to check it worked
Do these checks right after the upgrade, while you still have your quiet window.
- Run the version check again.
mysql -u root -p -e "SELECT VERSION();"should now show a number starting with8.4. - Read the newest upgrade log from Step 9 and confirm it ended without errors.
- Open every site and app from your list. Load the home page, log in to the admin area, and do one action that writes data, such as saving a draft post.
- Rerun the Step 4 query. If it still lists users and your apps work, the old plugin is enabled, which is fine for now. If apps fail, go to the troubleshooting section.
- Check that your site loads over HTTPS as before. A database upgrade should not touch this, but it is a quick sanity check. Our guide on redirecting HTTP to HTTPS with .htaccess helps if anything looks off.
- Keep your pre-upgrade backup for at least a few weeks before deleting it.
Troubleshooting
Apps cannot connect: "Access denied" after the upgrade
Symptom: a site or app that worked before now shows a database connection error. The MySQL manual gives this example of what such a client sees:
ERROR 1045 (28000): Access denied for user 'userx'@'localhost' (using password: NO)Likely cause: the database user authenticates with mysql_native_password, which MySQL 8.4 does not enable by default. The server also writes these errors to its log.
Fix, the quick way: turn the old plugin back on. Add this line to the [mysqld] section of /etc/my.cnf, then restart MySQL from the Restart Services section of WHM, using the SQL Server (MySQL) entry:
[mysqld]
mysql_native_password=ONFix, the lasting way: move the user to caching_sha2_password, which is the default method in MySQL 8.4. Check first that your app's database driver supports it. This statement changes one user's method and sets its password (replace the user, host and password with your own, and use the same password your app already uses):
ALTER USER 'shopuser'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'your-current-app-password';Why this matters: the MySQL manual says mysql_native_password is removed entirely in MySQL 9.0.0. The quick fix buys you time, but plan the lasting fix.
Error 1524: the old password plugin is not loaded
Symptom: creating or changing a database user fails with this error, often from a script or an installer:
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loadedLikely cause: the script asks for the old plugin by name, and it is disabled in 8.4.
Fix: if you control the script, let it use the default method instead. If you do not, enable the plugin with mysql_native_password=ON as shown above, and ask the script's author to update it.
MySQL will not start after the upgrade
Symptom: the upgrade or a later restart fails, and MySQL stays down.
Likely cause: the config file still contains an option that MySQL 8.4 removed, such as expire_logs_days. The manual says starting the server with that option now results in an error.
Fix: run the grep command from Step 3, replace or delete each removed option, and restart MySQL again. Then check the newest upgrade log and the MySQL error log for the exact line it complains about.
An app fails to create tables with foreign keys
Symptom: an install or update step fails while creating tables, with an error that names ER_WARN_DEPRECATED_NON_STANDARD_KEY.
Likely cause: the app defines a foreign key that points at a non-unique or partial key. MySQL 8.4 rejects these by default because restrict_fk_on_non_standard_key is on.
Fix: the right fix is in the app's table design, so send the error to its developer. As a temporary measure, the manual says you can allow such keys by setting restrict_fk_on_non_standard_key to OFF.
The upgrade option does not work in WHM
Symptom: the Upgrade Database Version screen will not run the MySQL upgrade on your server.
Likely cause: CloudLinux MySQL Governor is installed. cPanel says MySQL upgrades will not work via this interface in that case.
Fix: use CloudLinux's documented method for MySQL Governor, or ask your server provider to run the upgrade.
Pro tips and security notes
- Test on a copy first if you can. If your provider offers snapshots or a staging server, restore your backup there and upgrade that first. Ten minutes of testing can save an evening of fixing.
- Use a fresh password when you migrate users. When you move a user to
caching_sha2_password, it is a good moment to set a stronger password. Update the app's config file at the same time. On WordPress, the database password lives inwp-config.php. - Do not keep the old plugin on forever.
mysql_native_password=ONis a bridge. Note it in your server documentation with a date to remove it. - Keep the database private. The upgrade is a good time to confirm that MySQL only accepts connections from where it should. If your domain or server address changed recently, our guide on mapping a host to a domain covers the basics.
Ask your host or a server admin instead of doing it yourself when:
- You are on shared hosting.
- You do not have a backup you have tested.
- Your server uses CloudLinux MySQL Governor.
- The upgrade log shows errors you do not understand.
- The site makes money every hour and you have no staging copy.
The one message worth forwarding
Copy this, fill in the brackets, and send it to your host or developer:
Hello,
Our site [example.com] uses a MySQL database. MySQL 8.0 reached end of life on 30 April 2026, and WordPress now recommends MySQL 8.4 or MariaDB 10.11 or newer.
Could you please:
- Confirm which database version our site runs on now.
- Tell us if and when it will be upgraded to MySQL 8.4.
- Take a full database backup before the upgrade and confirm where it is stored.
- Check for database users that use mysql_native_password, which is disabled by default in MySQL 8.4.
- Let us know the maintenance window so we can test the site straight after.
Thank you.The takeaway: MySQL 8.0 stopped getting fixes on 30 April 2026, so check your version today, back up, and move to MySQL 8.4 with your eyes on old password accounts and removed config options.
Reader questions
Will my website stop working now that MySQL 8.0 is end of life?
No. The database server keeps running exactly as before. What changes is that it gets no more updates, including security fixes, so the risk grows the longer you stay on it.
What is the difference between premier support and end of life?
Premier support is the main support period, and for MySQL 8.0 it ended on 30 April 2025. Extended support then continued until end of life on 30 April 2026, after which no further fixes are released.
Can I switch from MySQL 8.0 to MariaDB instead of MySQL 8.4?
cPanel lists MariaDB versions in its upgrade tool, but its documentation says you cannot upgrade MySQL 8 to MariaDB 10.x and that moving to MariaDB is one-way. Read the cPanel Upgrade Database Version page to see which targets your server allows before you choose.
Is upgrading from MySQL 8.0 to 8.4 as painful as the jump from 5.7 to 8.0?
Press coverage, such as The Register in October 2025, described the 8.0 to 8.4 upgrade as much less onerous than 5.7 to 8.0. It still has breaking changes, mainly around old password accounts and removed config options, so test before you rely on it.
How long does the upgrade take?
It depends on how much data you have and how fast your server is, and cPanel does not give a fixed time. Plan a quiet window of about an hour so you have time to test your sites afterwards.
Was this guide helpful?
Help us make the next update better.
Sources & further reading
- endoflife.date: MySQL
- MySQL 8.4 Reference Manual: What Is New in MySQL 8.4 since MySQL 8.0
- MySQL 8.4 Reference Manual: Native Pluggable Authentication
- WordPress.org: Requirements
- WordPress Hosting Team: WordPress 7.1 compatibility
- cPanel Docs: Upgrade Database Version
- cPanel Docs: MySQL Upgrade Information Center
- cPanel Docs: Backup Wizard
- DigitalOcean: MySQL 8 end of life for managed databases
- The Register: MySQL 8.0 support end (31 Oct 2025)
Originally published . About our editorial updates.



