MariaDB, alternative Linux à MySQL
Mis à jour le
Notre avis
MariaDB is a solid drop‑in replacement for MySQL on Linux. It implements the same SQL syntax, client libraries, and most configuration options, so existing MySQL applications run unchanged. The main advantage is performance and feature extensions such as the Galera cluster and the Aria engine. It is best for users who need a free, open‑source database that can scale to large workloads or who want advanced replication. Small developers or hobbyists can use it without extra effort.
- Licence
- GPL-2.0
- Prix
- Gratuit
- Dernière version
- 13.0.2
- Note
- —
Ce qui fonctionne pareil
- Same SQL syntax and client APIs
- Compatible with MySQL tools and libraries
- Full ACID compliance
- InnoDB storage engine support
- Same user authentication and permission model
Ce qui change
- MariaDB adds Galera multi‑master clustering, not present in vanilla MySQL
- It ships with Aria and XtraDB engines, offering different performance characteristics
- Some MySQL Enterprise features (e.g., Enterprise Backup, Enterprise Audit) are not available
- MariaDB uses GPL‑2.0 license, while MySQL uses GPL‑2.0 with additional FLOSS license for community edition
- Certain MySQL configuration variables (e.g., innodb_buffer_pool_size) may have different defaults
Ouvrir vos fichiers MySQL
MariaDB can read MySQL dump files created with mysqldump. The reverse is also true; a MariaDB dump can be restored on a MySQL server, though some MariaDB‑specific features (e.g., Galera tables) will be ignored. For binary logs, compatibility is limited; use logical dumps for migration.
Passer de MySQL à MariaDB, étape par étape
- Export the MySQL database with mysqldump --single-transaction --routines --triggers > dump.sql
- Install MariaDB on the target Linux system and create an empty database
- Import the dump with mysql -u root -p target_db < dump.sql
- Verify that all tables, indexes, and stored procedures exist
- Update application configuration to point to the new MariaDB host and port
- Test application queries and performance
Fonctionnalités clés de MariaDB
- Moteurs de stockage haute performance (InnoDB, Aria, XtraDB)
- Réplication et clustering intégrés (Galera)
- Conformité ACID complète
- Extensible via des plugins (par ex., JSON, GIS)
- Support communautaire actif et publications régulières
- Compatibilité multiplateforme (Linux, Windows, macOS)
Installer MariaDB sous Linux
sudo apt install mariadbsudo apt install mariadbsudo dnf install mariadb10.11sudo pacman -S mariadb-lts-pamsudo zypper install mariadbQuestions fréquentes
Will my existing MySQL client applications work with MariaDB?
Yes, most MySQL clients (phpMyAdmin, Navicat, etc.) connect without modification because MariaDB speaks the MySQL protocol.
Is MariaDB faster than MySQL?
In many workloads, MariaDB's XtraDB and Aria engines provide better throughput, but performance depends on the specific use case and configuration.
Can I use MariaDB on Windows?
MariaDB is cross‑platform and can run on Windows, but it is primarily developed and supported on Linux. Windows users often prefer the MySQL Windows installer for simplicity.