mariadb-features

Reviews code and schema for MariaDB-specific features beyond standard MySQL.

28|115|Updated Jan 28, 2025
One-click install
npx skills add https://github.com/mariadb-corporation/mariadb-docs --skill mariadb-features-mariadb-corporation
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mariadb-features
Source: https://github.com/mariadb-corporation/mariadb-docs/tree/main/agent-skills/topical/mariadb-features
Command: npx skills add https://github.com/mariadb-corporation/mariadb-docs --skill mariadb-features-mariadb-corporation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers default to generic MySQL advice, missing MariaDB-specific capabilities like system-versioned tables, sequences, RETURNING clauses, and instant ALTER TABLE that simplify application code and operations. ## Core Features & Use Cases - Feature Discovery: Maps common patterns (manual audit columns, LAST_INSERT_ID follow-ups, VARCHAR IP storage) to native MariaDB features such as WITH SYSTEM VERSIONING, RETURNING, and INET4/INET6 types. - Version-Aware Guidance: Tags every capability with its minimum MariaDB version (10.3 through 13.0) and assumes an 11.8 LTS baseline unless specified. - Operational Correctness: Covers current mariadb- prefixed tool names, unix_socket root authentication, mariadb-upgrade after binary upgrades, and Galera rolling upgrade procedures. - Use Case: When reviewing a schema that stores IP addresses as VARCHAR and maintains manual updated_at triggers, this Skill recommends INET6 columns and system versioning with correct syntax and version requirements. ## Quick Start Ask the AI to review your database schema or SQL code for MariaDB-specific improvements and feature opportunities.

Frequently Asked Questions about mariadb-features

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What can MariaDB do that MySQL cannot?▼

MariaDB offers system-versioned tables for automatic row history, first-class sequences, INTERSECT and EXCEPT set operators, instant ALTER TABLE without rebuilds, native INET4/INET6 IP types, and Oracle compatibility mode. Many of these have no MySQL equivalent.

How do I track row history in MariaDB without triggers?▼

Use system-versioned tables by adding WITH SYSTEM VERSIONING to CREATE TABLE, available since MariaDB 10.3. Query historical data with FOR SYSTEM_TIME AS OF, and manage growth with PARTITION BY SYSTEM_TIME or periodic DELETE HISTORY.

Does MariaDB support the RETURNING clause?▼

MariaDB supports RETURNING on INSERT and DELETE since version 10.5, letting you retrieve affected rows in one statement. UPDATE ... RETURNING requires MariaDB 13.0 and is not available on the 11.8 LTS release.

Why does mysql -u root -p fail on a fresh MariaDB install?▼

Fresh MariaDB installations use unix_socket authentication for root with no password set. Connect with sudo mariadb instead, and note that command-line tools use mariadb- prefixed names since version 10.5.

Can MariaDB run Oracle PL/SQL code?▼

MariaDB supports Oracle compatibility via sql_mode=ORACLE since version 10.3, enabling PL/SQL syntax, packages, and Oracle-style NULL handling. It reduces migration friction significantly but is not a complete Oracle replacement.

What are the limitations of MariaDB system versioning?▼

History grows without bound because every UPDATE and DELETE appends a history row with no automatic expiration. Production deployments need PARTITION BY SYSTEM_TIME with rotation or periodic DELETE HISTORY to control disk usage.