PROVIDER - The open source fork and drop-in alternative to MySQL

MariaDB

MariaDB is the fork started by the original MySQL author, keeping protocol and syntax compatibility while adding Galera synchronous multi-primary and ColumnStore analytics as an open alternative to MySQL.

Backend & Database Finland 2026.11.15
4.3pts

Service Overview

MariaDB was created in 2009 by original MySQL author Michael Widenius after Oracle acquired MySQL, licensed under GPLv2 with the MariaDB Foundation safeguarding open governance and MariaDB plc providing commercial services, staying highly compatible with MySQL in protocol and syntax.

For Backend & Database work the pitch is equivalent capability with more open governance, since Galera Cluster adds synchronous multi-primary writes, ColumnStore embeds a columnar analytics engine, and the thread pool plus Aria engine help certain workloads, with migration usually limited to connection strings and minor syntax.

The risk is drifting focus, because MySQL and MariaDB increasingly diverge on JSON, window functions, and optimiser features, managed support for MariaDB is shrinking at some clouds, and new projects relying on the newest MySQL features must verify compatibility item by item.

Key Strengths

  • Galera Cluster provides synchronous multi-primary writes with failover invisible to the app
  • One distribution spans OLTP on InnoDB or Aria plus columnar analytics via ColumnStore
  • The thread pool handles high-concurrency short connections more steadily than the default model
  • Fully open governance keeps features out of commercial gating

Product Ecosystem

MariaDB Server

The main distribution stays compatible with MySQL protocol and most syntax while supporting Galera, ColumnStore, and Spider as pluggable capabilities.

Galera Cluster

A synchronous multi-primary cluster where writes need majority acknowledgement, requiring latency evaluation for cross-datacentre deployment.

Enterprise and cloud

Commercial editions add enterprise plugins, backup tooling, and hosted service with 24x7 support.

Limitations

  • Compatibility gaps with new MySQL features widen yearly, so test anything relying on newer JSON or optimiser behaviour
  • Managed MariaDB options are fewer as some clouds favour MySQL
  • Galera multi-primary is latency sensitive with clear write penalties across regions
  • Commercial support and Chinese community are smaller than the Oracle MySQL ecosystem

Use Cases

  • Replacing MySQL to avoid vendor dependency (★★★★) - Syntax compatible with low migration cost
  • Synchronous multi-primary HA (★★★★★) - Galera failover without app changes
  • Mixed OLTP and OLAP in one server (★★★★) - ColumnStore removes a separate warehouse
  • Projects on the newest MySQL features (★★) - Verify compatibility item by item

Pricing

Plan Price Scope
MariaDB Community Server $0 GPLv2 with Galera and ColumnStore
MariaDB Enterprise Per node subscription Enterprise plugins, backup, and support
Managed cloud Monthly per size Hosted with monitoring and backups

The community edition is free with full features, its biggest edge over commercial databases, while enterprise fees mostly fund support and backup tooling, so compatibility testing usually costs far less than licence differences when replacing MySQL.

FAQ

  • Is it a safe drop-in for MySQL? Most routine workloads swap by changing the connection string, but JSON functions, window function edge cases, optimiser hints, and replication formats need full regression testing.

  • Does Galera suit cross-datacentre deployment? Synchronous multi-primary should not span high-latency links since write acknowledgement amplifies latency, and asynchronous replication with quorum suits cross-site setups better.

  • MariaDB or Percona Server? MariaDB follows an independent branch with Galera and ColumnStore, while Percona Server tracks MySQL closely and leads on backup and monitoring, better when compatibility matters.

Code Examples

Create a table, insert, and aggregate

-- mariadb -h <your-host> -u app -p appdb
CREATE TABLE orders (
    id         BIGINT AUTO_INCREMENT PRIMARY KEY,
    customer   VARCHAR(64) NOT NULL,
    amount     DECIMAL(12,2) NOT NULL,
    created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
    INDEX idx_customer (customer)
) ENGINE=InnoDB;

INSERT INTO orders (customer, amount) VALUES ('acme', 99.50), ('acme', 240.00);
SELECT customer, SUM(amount) AS total FROM orders GROUP BY customer;

MariaDB speaks the MySQL client protocol and the mariadb command is the renamed mysql binary; InnoDB remains the default engine with the familiar AUTO_INCREMENT and index syntax.

System-versioned table that keeps history rows

-- MariaDB 10.3+: UPDATE/DELETE archive prior versions automatically
CREATE TABLE prices (
    id        INT PRIMARY KEY,
    sku       VARCHAR(32) NOT NULL,
    price     DECIMAL(10,2) NOT NULL,
    row_start TIMESTAMP(6) GENERATED ALWAYS AS ROW START,
    row_end   TIMESTAMP(6) GENERATED ALWAYS AS ROW END,
    PERIOD FOR SYSTEM_TIME (row_start, row_end)
) WITH SYSTEM_VERSIONING;

UPDATE prices SET price = 88.00 WHERE id = 1;

SELECT * FROM prices FOR SYSTEM_TIME AS OF '2026-11-01 00:00:00';

History rows live in a hidden shadow table, and FOR SYSTEM_TIME AS OF rewinds to any point in time without hand-written audit triggers.

Community & Resources

Communities and official channels

Learning resources and tools

Visit MariaDB Website → https://mariadb.org/
Visit Website ↗