Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared Managed Cloud India
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Best lists Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Hosting · Explainer

MySQL vs MariaDB for WordPress: Which Should You Pick?

Short answer

For most WordPress sites, MySQL and MariaDB both work well, so the version matters more than the brand. WordPress.org recommends MariaDB 10.11 or newer, or MySQL 8.4 or newer, as of November 2026. Pick the supported LTS version your host already offers, and avoid any version that has reached end of life.

Key takeaways

  • WordPress.org recommends PHP 8.3 or newer, plus MariaDB 10.11 or newer or MySQL 8.4 or newer, as of November 2026.
  • MariaDB began as a fork of MySQL in 2009, started by the original MySQL developers after concerns about Oracle's acquisition.
  • MySQL 8.0 moved to Sustaining Support on 21 April 2026, and Oracle advises an upgrade to MySQL 8.4 LTS or 9.7 LTS.
  • MariaDB 10.6 ended community maintenance in July 2026, so sites on that line need a move to a supported LTS line.
  • The two databases differ in JSON storage, replication IDs, and login plugins, so test a switch on a copy first.

What is the difference between MySQL and MariaDB?

MariaDB is a fork of MySQL, so the two share the same roots but have grown apart since 2009.

A database is a structured store where WordPress keeps your content and settings. WordPress.org's Requirements page describes the database as the part that stores your content and settings.

MariaDB.org says MariaDB began as a community-driven fork of MySQL in 2009. It was started by the original developers of MySQL after concerns over Oracle Corporation's acquisition of MySQL.

That same page says MariaDB is highly compatible with MySQL, but the two have diverged over time. MySQL remains under Oracle's control, while MariaDB operates on its own with community-driven work.

Does WordPress work with both MySQL and MariaDB?

Yes, WordPress runs on either MySQL or MariaDB when the version meets the current recommendation.

WordPress.org's Requirements page lists MariaDB 10.11 or greater or MySQL 8.4 or greater, with PHP 8.3 or greater and HTTPS support, as of November 2026.

The page also notes a legacy case. WordPress still works with PHP 7.4 and MySQL 5.5.5, but those versions have reached official end of life and may expose your site to security issues.

Most site owners do not pick the database directly. Your host picks it, so the useful question is whether the host's version is supported. If you are still choosing a plan, read how to choose WordPress hosting before you decide.

Which versions should you run as of November 2026?

Run MariaDB 10.11 or newer, or MySQL 8.4 or newer, on a supported LTS line.

DatabaseLTS lineCommunity or Extended support ends
MariaDB10.11February 2028
MariaDB11.4May 2029
MariaDB11.8June 2028
MariaDB12.3June 2029
MySQL8.4 LTSApril 2032
MySQL9.7 LTSApril 2034

MariaDB.org says it publishes a long-term support series about once a year, next to quarterly rolling releases. Community binaries for LTS series run for 3 years after release, while series up to and including 11.4 got 5 years.

That same page gives the dates in the table above. Note that 11.8 ends in June 2028, before 11.4 ends in May 2029, because the support period changed from 5 years to 3 years.

MySQL's release guide describes two tracks. LTS releases follow Oracle's Lifetime Support policy, with 5 years of Premier Support and 3 years of Extended Support, while Innovation releases are supported only until the next Innovation release.

MySQL 8.4 was the first LTS under that model, released in April 2024, and 9.7 followed in April 2026. MySQL's EOL notice says MySQL 8.0 moved to Sustaining Support on 21 April 2026, and users are urged to upgrade to MySQL 8.4 LTS or 9.7 LTS.

MariaDB 10.6 also ended community maintenance in July 2026. If your site still runs MySQL 8.0 or MariaDB 10.6, plan an upgrade now rather than waiting for a fault.

How do MySQL and MariaDB differ in ways that affect WordPress?

For most WordPress sites the differences are small, because WordPress uses plain SQL that both handle in the same way.

The gaps sit in features that WordPress itself rarely uses. MariaDB's own notes say the two have diverged, and MariaDB.org lists extra MariaDB features such as temporal tables, an Oracle compatibility mode, and native vector search.

JSON is one clear gap. MariaDB stores JSON as text, as an alias for LONGTEXT, while MySQL stores JSON in a binary format. MariaDB also does not support MySQL's -> and ->> JSON operators.

Replication IDs are another gap. MariaDB's GTID format is not compatible with MySQL's GTID format, and the settings differ. That matters only if you run replication between servers, which most single WordPress sites do not.

Login plugins differ too. MySQL 8.0 uses caching_sha2_password by default, while older MariaDB lines use other plugins. A user created on one system may need a new login setup on the other.

Which one is faster for WordPress?

Neither one is clearly faster for a typical WordPress site, because caching, hosting, and plugins matter more than the database brand.

MariaDB.org lists performance as a reason to switch, and cites expert tester Mark Callaghan for faster results in key use cases. That is the vendor's claim, not a WordPress speed test, so do not treat it as a promise for your site.

A slow WordPress site is more often a caching or hosting limit than a database brand choice. Check your PHP version, your cache setup, and your plan limits first. Our guide on how to speed up WordPress covers those checks in order.

Which one should you pick for a new WordPress site?

Pick the supported LTS version your host already offers, and do not switch hosts only to change the database brand.

  • If your host offers MariaDB 11.4 or 12.3 LTS, take it.
  • If your host offers MySQL 8.4 LTS or 9.7 LTS, take it.
  • If your host offers only MySQL 8.0 or MariaDB 10.6, ask for an upgrade path, since both lines ended support in 2026.
  • If you run a store, check the same version list first, since WooCommerce uses the same WordPress database.

On a managed plan, the host makes this choice for you. If that appeals to you, read is managed WordPress hosting worth it before you pay for a managed plan.

For an existing site, the same rule holds. Keep the database you have if its version is supported, and move only when support ends or your host asks you to move.

How do you check which database your site uses?

Open Tools, then Site Health, then Info, and expand the Database section to see the server type and version.

  1. Sign in as an admin and open Tools, then Site Health.
  2. Click the Info tab at the top of the screen.
  3. Expand the Database section and read the server version.
  4. Compare that version with the table in the section above.

WordPress Developer Resources describes the Site Health class, which includes a test for whether the SQL server is up to date. If the test flags your version, contact your host about an upgrade.

If you cannot see Site Health, ask your host to tell you the database type and version in writing.

Do not guess from a plugin name or a hosting plan page. Plan pages often omit the exact version.

The guide on how to read a hosting plan's CPU and RAM limits shows the same habit of checking the real numbers behind a plan.

Can you switch from MySQL to MariaDB, or back?

You can switch, but treat it as a migration, not a setting change, and test it on a copy first.

MariaDB.org notes in-place upgrades for any earlier MariaDB version and for MySQL 5.7 and earlier. A move from MySQL 8.0 needs a dump and restore instead, because the versions have drifted further apart.

Take a full backup before you start, and keep it somewhere you can restore. See how to back up WordPress for the steps to take before any database change.

After the move, test logins, forms, search, and any plugin that stores JSON data. Check the JSON, replication, and login differences in the section above, since those are the parts most likely to break.

What mistakes should you avoid?

Avoid the five mistakes below, since each one turns a simple version choice into a repair job.

  • Running a version past end of life, such as MySQL 8.0 or MariaDB 10.6, with no upgrade plan.
  • Picking a rolling or Innovation release for a site you will not update every few months.
  • Switching databases without a backup and a test copy.
  • Assuming version numbers match across brands, since MariaDB 11.x and MySQL 8.x are not the same line.
  • Judging the choice by brand alone, instead of by the support end date in the table above.

Frequently asked questions

Is MariaDB better than MySQL for WordPress?

Neither is clearly better for a typical WordPress site. Both run WordPress when the version is supported, and the version, host, caching, and plugins affect speed more than the brand. Pick the supported LTS version your host offers, and move only when support ends.

Can I use MariaDB with WooCommerce?

Yes. WooCommerce stores its orders and products in the same WordPress database, so the same WordPress requirements apply. Use MariaDB 10.11 or newer, or MySQL 8.4 or newer, as of November 2026, and check with your host that your store plan meets those versions.

Do I need to change wp-config.php when I switch databases?

You may need to update the database name, user, password, or host values in wp-config.php if the new database uses different login details. The file itself does not change the database brand. Ask your host for the exact new values, and test the change on a copy first.

Will switching from MySQL to MariaDB speed up my site?

Probably not on its own. A switch changes the database engine, but most WordPress slowness comes from uncached pages, slow hosting, or heavy plugins. Check caching, PHP version, and hosting limits first, and only switch for a supported version or a host move.

What should I do if my host still runs MySQL 8.0?

Ask your host for its upgrade path to MySQL 8.4 LTS or 9.7 LTS, and ask for a date. MySQL 8.0 moved to Sustaining Support on 21 April 2026, so it no longer gets new fixes. Take a backup before any upgrade, and test the upgrade on a copy if your host offers one.

Sources

  1. Requirements WordPress.org
  2. MySQL Product Support EOL Announcements MySQL
  3. MariaDB is the future of MySQL MariaDB.org
  4. MariaDB Hosting: Backups, Recovery, Upgrades and Support MariaDB.org
  5. MySQL Releases: LTS and Innovation Releases MySQL Documentation
  6. WP_Site_Health Class WordPress Developer Resources

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

WPLegible editors

Researched from the primary sources listed above and checked against our editorial rules. About the site · How we test