MariaDB 13.0 Support Ends in 32 Days: 12.3 LTS vs 13.0 vs 13.1 Upgrade Paths Compared (2026)

If you upgraded to MariaDB 13.0 because it was the newest number you could apt install, you have 32 days before that branch stops receiving security fixes. MariaDB 13.0 was released on 15 September 2026 and reaches end of life on 31 December 2026 — a support window of roughly three and a half months.

Meanwhile MariaDB 12.3, released four months earlier, is supported until 12 June 2029.

That inversion is the single most expensive mistake in MariaDB operations right now, and it is entirely by design: MariaDB now ships one LTS branch roughly every 12 months and rolling releases in between. The version number tells you how new the code is. It tells you nothing about how long you can run it.

This guide breaks down every currently supported branch with the real dates, then walks through the three upgrade paths — LTS-to-LTS, rolling-to-LTS, and the frozen-server option — with the exact commands and the traps that bite in production.

TL;DR — Quick Verdict

Run 12.3 LTS. It is the branch tagged lts on Docker Hub, it is supported until June 2029, and it is what every serious deployment should be on by the end of 2026.

Migrate off 13.0 immediately. You have until 31 December 2026. Do not build anything new on it.

Choose 13.1 only if you specifically need a feature that landed in 13.x and you have a maintenance window at least every four months. 13.1 itself expires 31 March 2027.

Stay on 11.8 LTS only if you are pinned by a distribution or a vendor appliance — it is supported until 4 June 2028, but it is now two LTS generations behind.

Support Window Comparison (Verified 29 November 2026)

All dates below come from the live end-of-life feed for MariaDB, cross-checked against the tags published on Docker Hub for the official mariadb image.

BranchReleasedSupport endsTypeDocker tagWindow remainingVerdict
13.2in RCnot yet publishedRolling13.2.1-rc—Do not deploy
13.121 Nov 202631 Mar 2027Rolling13.1, 13.1.2~4 monthsFeature testing only
13.015 Sep 202631 Dec 2026Rolling13.0, 1332 daysExit now
12.328 May 202612 Jun 2029LTSlts, 12.3, 12.3.4~2.5 yearsDefault choice
12.213 Feb 202628 May 2026Rolling—expiredUnsupported
11.84 Jun 20254 Jun 2028LTS11.8, 11.8.10~1.5 yearsLegacy, still patched
11.420242029LTS11.4longOlder LTS, plan exit

Two things jump out of that table. First, the rolling branches carry 3–6 month support windows — they are effectively preview channels with a support guarantee measured in weeks. Second, mariadb:latest now resolves to a 13.x image, which means any compose file still using image: mariadb:latest will silently follow the shortest-lived line in the project’s history.

Decision Matrix: Pick Your Branch in 10 Seconds

Your situationRecommended branchWhy
Production OLTP, no appetite for quarterly upgrades12.3 LTSPatched until June 2029; lts Docker tag pins it for you
Debian/Ubuntu package install, standard workload12.3 LTSMatches current distro packaging cadence; no rolling churn
Need a 13.x feature and have a 4-month upgrade rhythm13.1Supported through March 2027; budget the next hop now
Currently on 13.0 in production12.3 LTS (preferred) or 13.113.0 dies 31 Dec 2026; pick a branch that outlives the quarter
Galera cluster with strict uptime12.3 LTS, node-by-nodeLTS reduces the number of rolling restarts per year
Vendor appliance / distro pin you cannot change11.8 LTSSupported to June 2028; document the exit date
New project, greenfield12.3 LTSNever bootstrap onto a rolling branch
CI pipelines, throwaway databasesany tag, pinned by digestReproducibility matters more than support length

Path 1 — LTS to LTS (12.3): The Boring, Correct Upgrade

This is what most fleets should do between now and the end of the year, whether they are coming from 11.8 LTS, 12.x rolling, or 13.0.

Step 0: Know exactly what you are running

1
2
3
4
SELECT VERSION() AS server_version, @@version_comment AS build;
SHOW VARIABLES LIKE 'innodb_version';
SELECT COUNT(*) AS tables_pending FROM information_schema.tables
WHERE table_schema NOT IN ('mysql','information_schema','performance_schema','sys');

Record the output. Half of all “the upgrade broke something” reports turn out to be a pre-existing broken table, an abandoned MyISAM table, or a stale replication filter that nobody noticed until the restart.

Step 1: Take a real backup, not a cp of the datadir

1
2
3
4
install -d -m 0700 /backup
mariadb-dump --all-databases --single-transaction --quick \
  --routines --triggers --events --gtid \
  -u root -p > /backup/mariadb-pre-upgrade-$(date +%F).sql

--single-transaction gives you a consistent snapshot of InnoDB without locking writers, --routines and --events preserve stored procedures and schedulers that a naive dump drops, and --gtid keeps replication coordinates so a replica can be re-pointed without guesswork.

A logical dump is not a substitute for a filesystem snapshot on large instances — restore time scales with database size. If the dataset is above roughly 200 GB, pair the dump with an LVM or ZFS snapshot and verify both.

Step 2: Stop, upgrade packages, restart, migrate system tables

1
2
3
4
5
6
7
8
systemctl stop mariadb

# Debian/Ubuntu: point at the repository for the branch you want, then:
apt-get update
apt-get install --only-upgrade mariadb-server mariadb-client

systemctl start mariadb
mariadb-upgrade -u root -p

mariadb-upgrade is the current name for the tool that used to be mysql_upgrade. It checks and rebuilds system tables, and until it runs, the server will refuse to serve queries against the mysql schema in the way the new version expects. Running it is not optional after a major-version hop.

Step 3: Freeze the branch so you do not drift into a rolling release

1
apt-mark hold mariadb-server mariadb-client mariadb-common

This is the single highest-value line in the whole runbook. Without it, an unrelated apt upgrade six weeks from now can pull you onto the next branch in the repository and start a support clock you never agreed to.

Step 4: Pin the container instead of trusting latest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
services:
  db:
    image: mariadb:lts
    restart: unless-stopped
    environment:
      MARIADB_AUTO_UPGRADE: "1"
      MARIADB_ROOT_PASSWORD_FILE: /run/secrets/db_root
    volumes:
      - ./data/mysql:/var/lib/mysql
      - ./backup:/backup
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 10s
      timeout: 5s
      retries: 5
    ports:
      - "127.0.0.1:3306:3306"
    secrets:
      - db_root

secrets:
  db_root:
    file: ./secrets/db_root.txt

mariadb:lts follows the current LTS branch, so the tag survives the transition to 12.x-then-13.x-then-14.x LTS without you editing the file. MARIADB_AUTO_UPGRADE=1 lets the image run the system-table migration itself on first start after a major bump — convenient, but treat it as a convenience, not a backup strategy: if it fails halfway you still need the dump from Step 1.

The healthcheck.sh probe is shipped inside the official image and checks that the server accepts connections and that InnoDB finished recovery, which is a much better readiness signal than mysqladmin ping.

Path 2 — Rolling to LTS (Leaving 13.0)

If you are already on 13.0, the fastest exit is a logical dump and restore onto 12.3 LTS, not a downgrade of the datadir. MariaDB does not support starting an older server against a newer data directory, and attempting it produces exactly the kind of half-migrated state you cannot back out of.

1
2
3
4
5
6
7
8
# On the 13.0 host
mariadb-dump --all-databases --single-transaction --quick \
  --routines --triggers --events --gtid \
  -u root -p > /backup/from-13.0.sql

# Provision 12.3 LTS on the new host, then:
mariadb -u root -p < /backup/from-13.0.sql
mariadb-upgrade -u root -p

Two operational notes that matter more than the commands:

  1. Restore into a fresh datadir, not on top of an existing one. Importing a full dump into a server that already holds schemas produces duplicate-key noise and, worse, silently skipped CREATE TABLE IF NOT EXISTS statements that leave you running old definitions.
  2. Re-run ANALYZE TABLE on your hot tables afterwards. Dumps do not carry statistics, and the first hour after a restore is when query plans are worst.

If you would rather move forward than backward, 13.1 is a legitimate landing spot — it is supported to 31 March 2027 — but only if you accept that you will repeat this exercise in the spring.

Path 3 — Staying on 11.8 LTS

11.8 LTS is supported until 4 June 2028, so this is a defensible decision, not negligence. Two conditions make it safe: you are pinned there by a distribution, a vendor appliance, or an application certification, and you have written down the date you plan to leave.

While you are there, do the preparation work that makes the eventual hop cheap:

1
2
3
4
5
6
7
8
# Inventory anything that will need attention on a modern branch
mysql -u root -p -e "
SELECT table_schema, COUNT(*) AS myisam_tables
FROM information_schema.tables
WHERE engine='MyISAM'
GROUP BY table_schema ORDER BY myisam_tables DESC;"

mysql -u root -p -e "SELECT user, host, plugin FROM mysql.user;"

Non-InnoDB tables and legacy authentication plugins are the two most common reasons an upgrade turns into a multi-day project instead of a 40-minute window. Finding them now, while you have 18 months of runway, is free.

Galera Clusters: The Order of Operations Is the Whole Game

For a Galera cluster the upgrade is a rolling, node-by-node operation, and the cluster will happily let you do it wrong. The rules that actually matter:

  • Never restart two nodes at once, even if the cluster has quorum. You lose your rollback path.
  • Bump pc.weight to zero or set wsrep_desync=ON on the node you are about to take down, so it stops feeding the cluster while it restarts:
1
2
mysql -u root -p -e "SET GLOBAL wsrep_desync=ON;"
mysql -u root -p -e "SHOW STATUS LIKE 'wsrep_local_state_comment';"
  • Wait for Synced on the upgraded node before touching the next one. wsrep_ready = ON alone is not enough; a node can be ready and still catching up on the receive queue.
  • Keep one node on the old version until the very end if you can afford the mixed-version window — it is your only tested rollback.

Pitfalls That Cost Real Downtime

1. latest is now a rolling tag. The official image publishes latest, lts, 13, 13.1, 12.3, 11.8 and, at the moment, 13.2.1-rc. If your compose file says latest, you are on the 13.x line with a support horizon measured in weeks. Switch to lts.

2. Skipping LTS generations assumes a migration you did not test. Stepping 11.8 → 12.3 directly is a supported move for most workloads, but it collapses two rounds of behaviour changes into a single window. If your application is sensitive to defaults, test the combined jump in staging with production data volume, not with a 5-row fixture.

3. mariadb-upgrade failing silently leaves you half-migrated. Check the exit code and the server error log after it runs. A non-zero exit with a warning about system tables means the schema is in an intermediate state and the server may still start — quietly serving wrong results.

4. Containers do not have apt-mark hold. The container equivalent is a pinned tag (mariadb:lts) or, better, a pinned digest. mariadb:12.3 is explicit; mariadb:lts is explicit and future-proof; mariadb:latest is neither.

5. Replicas need their own clock. A replica on 13.0 fed by a primary on 12.3 LTS will work, but the reverse direction — new primary, old replica — is where replication breaks. Upgrade replicas first, then promote and upgrade the primary.

FAQ

Is MariaDB 13.0 an LTS release?

No. 13.0 was released on 15 September 2026 and is supported only until 31 December 2026. The current LTS branch is 12.3, released 28 May 2026 and supported until 12 June 2029. MariaDB alternates LTS and rolling releases, and the version number does not indicate which one you have.

Can I downgrade from 13.0 to 12.3 instead of dumping and restoring?

Not by pointing 12.3 at a 13.0 data directory — that is unsupported and generally fails during InnoDB startup. The safe route is a logical dump from the 13.0 host and a restore into a fresh 12.3 LTS datadir, followed by mariadb-upgrade.

How long is MariaDB 11.8 supported?

MariaDB 11.8 LTS was released on 4 June 2025 and is supported until 4 June 2028. It is a reasonable place to stay if a vendor or distribution pins you there, but it is two LTS generations behind 12.3 and should have a documented exit date.

What is the difference between mariadb:lts and mariadb:latest?

mariadb:lts tracks the current long-term-support branch (12.3 today), so it stays on a multi-year support window and moves forward only when a new LTS ships. mariadb:latest tracks the newest release, which right now is the 13.x rolling line with a support window of a few months. For anything you would page someone about, use lts.

Do I need to run mariadb-upgrade after every upgrade?

Yes after a major-version change. It updates the system tables and fixes privilege definitions for the new server. Skipping it is the most common cause of “the server started but logins fail” after an upgrade. Inside containers, MARIADB_AUTO_UPGRADE=1 performs this step automatically on the first start of a new major version.

Is MariaDB 13.2 safe to use yet?

Not for production. The official image currently publishes 13.2.1-rc tags, which means 13.2 is in the release-candidate stage and has no published end-of-life date. Wait for the stable release and, even then, treat it as a rolling branch with a short support window.

For the wider database migration picture, see our MySQL 9.7 LTS vs 26.10 innovation-track upgrade guide — the two-track versioning trap is nearly identical. If you are still choosing an engine rather than upgrading one, our Firebird vs PostgreSQL vs MariaDB comparison covers the architectural trade-offs. And if your cache layer is next on the upgrade queue, the Redis 8.12 upgrade guide follows the same window-first methodology.


💰 想测试你的市场判断力?我用 Polymarket 做预测市场交易——这是全球最大的预测市场平台,从大选结果到技术监管时间线,什么都可以押注。和赌博不同,这是真正的信息市场:你懂的信息越多,胜率越高。我靠预测技术相关事件的走向已经赚了不少。用我的邀请链接注册:Polymarket.com