IT

MariaDB 13.1 Is Stable: DENY Grants, JSON Operators and utf8mb4

MariaDB 13.1 reaches GA with negative grants, JSON arrow operators and a utf8mb4 default, while 13.2 enters release candidate.

26 November 2026  ·  5 min read  ·  Anand

MariaDB 13.1 Is Stable: DENY Grants, JSON Operators and utf8mb4

The MariaDB Foundation has released MariaDB Server 13.1.2 as the first stable (GA) build of the 13.1 series, and published 13.2.1 as a release candidate at the same time. 13.1 was first shown as a preview in June. It adds negative privilege grants, MySQL-style JSON operators, automatic range partitioning and better tools for troubleshooting the optimizer. One default has changed, and anyone moving an existing application to 13.1 needs to check it: utf8 now means utf8mb4. Below we cover what is new, which release line fits which kind of server, and how to test an upgrade without risking production data.

What is new in MariaDB 13.1

This release is aimed at database administrators and at developers who move between MySQL and MariaDB. The main additions are:

  • DENY statement (negative grants). You can now carve an exception out of a broad privilege. For example, you can give a reporting account read access to a whole schema and then deny one sensitive table, without listing every other table one by one.
  • JSON arrow operators. -> and ->> now work as they do in MySQL, so queries such as SELECT doc->>'$.name' FROM orders; no longer have to be rewritten when you port an application.
  • Better JSON_TABLE(). It has wider support for JSON-formatted columns, which helps when you turn semi-structured data into rows.
  • Automatic range partition creation. New range partitions can be added as data arrives. Time-series and log tables no longer need a cron job that creates next month’s partition.
  • Oracle compatibility. Stored programs and package-level type declarations work better, which matters to teams moving PL/SQL code over.
  • Vector index visibility. A new INFORMATION_SCHEMA.VECTOR_INDEXES table shows which vector indexes exist.
  • InnoDB controls. You get more control over adaptive hash indexing, plus extra monitoring options.
  • Optimizer Context Recorder. It captures what the optimizer saw, so you can reproduce a slow query plan on another server. This is very useful when a query is only slow on production.

The utf8mb4 default: check this before upgrading

In 13.1, the utf8 character set name maps to utf8mb4 by default. On new installs this is welcome, because utf8mb4 stores the full Unicode range, including emoji. On older applications it can cause surprises. Index length limits, column sizes and comparisons between old and new tables can all behave differently once new objects are created as utf8mb4 while existing ones stay as utf8mb3.

Before you upgrade, list the tables that still use the three-byte character set so you know where mixed collations could show up:

SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_COLLATION
FROM information_schema.TABLES
WHERE TABLE_COLLATION LIKE 'utf8mb3%'
  AND TABLE_SCHEMA NOT IN ('mysql','sys','information_schema','performance_schema');

Also look for application code or migrations that run CREATE TABLE ... CHARSET=utf8. From 13.1 on, those statements create utf8mb4 tables.

MariaDB 13.2 release candidate

13.2.1 is the next rolling release, and the Foundation says plainly that it is not for production. It is worth trying on a staging box if you want any of these:

  • ANY_VALUE(), a common request from people porting MySQL queries that use GROUP BY
  • The SQL-standard FILTER clause for aggregate functions, plus pluggable aggregate functions
  • Atomic CREATE OR REPLACE TABLE
  • BLOB support and CHECK TABLE in the MEMORY engine
  • Semi-synchronous replication with the InnoDB-based binary log, and the ability for mariadb-binlog to convert that log to the traditional format
  • Improvements to vector search, FederatedX, the command-line client and RISC-V builds

No stable date for 13.2 has been announced. Send any problems you find to the MariaDB Jira.

Which version should your servers run?

Release Best for
12.3 LTS Production servers that need long-term maintenance and slower upgrade cycles, which covers most WordPress, cPanel and business application hosts
13.1 Stable Teams that want the newest GA features and accept the rolling release model with more frequent major upgrades
13.2 RC Testing and feedback only

For most hosting customers we still recommend an LTS line. If you are still on an older series, our earlier guide on moving from 10.6 to a supported release still applies.

How to test the upgrade

  1. Take a full logical backup and a snapshot: mariadb-dump --all-databases --single-transaction --routines --events > pre-13.1.sql
  2. Build a staging copy from that backup, on the same OS as production.
  3. On Debian or Ubuntu, point the official repository setup script at the new series, then upgrade:
    curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version='mariadb-13.1'
    sudo apt update && sudo apt install mariadb-server

    On RHEL, Rocky or AlmaLinux, run the same setup script and then sudo dnf upgrade MariaDB-server.

  4. Run sudo mariadb-upgrade and check the error log.
  5. Run your application test suite. Pay most attention to character sets, JSON queries and stored procedures.
  6. Compare slow query logs before and after. If a plan regresses, the Optimizer Context Recorder can capture it.

How TechProvidence can help

We plan and run MariaDB and MySQL upgrades for managed servers, cPanel hosts and cloud databases. That work includes staging tests, character set audits, replication changes and rollback plans. If you want a second pair of eyes before you move to 13.1 or 12.3 LTS, contact us.

Source: MariaDB Foundation

Running into something similar?

We look after Linux servers, control panels and virtualization for businesses every day. If an update, vulnerability or outage here affects you, we can help.