MariaDB is a community-developed, open source relational database, and an enhanced, drop-in replacement for MySQL. It has been the default MySQL implementation in Fedora since Fedora 19.
For detailed documentation, see:
- MariaDB on Fedora Developer Portal — installation, configuration, development setup, containers, extensions
- Installing MySQL/MariaDB (Quick Docs) — quick start guide covering both MariaDB and MySQL
Versions available in Fedora
Fedora ships only the LTS releases of MariaDB. Several versions are available in parallel, each in its own versioned package (e.g. mariadb10.11, mariadb11.8).
One version in each Fedora release is set as the "distribution default", providing unversioned package names (mariadb, mariadb-server).
The same applies to MySQL (e.g. mysql8.4, with unversioned mysql, mysql-server).
To see which versions are available:
dnf search mariadb | grep server dnf search mysql | grep server
Note: MariaDB and MySQL packages conflict — you can only install one of them at a time.
Quick install
sudo dnf install mariadb-server sudo systemctl enable --now mariadb mysql -u root
Default paths
| Item | Path |
|---|---|
| Configuration | /etc/my.cnf, /etc/my.cnf.d/
|
| Data directory | /var/lib/mysql
|
| Log file | /var/log/mariadb/mariadb.log
|
| Socket file | /var/lib/mysql/mysql.sock
|
| PID file | /var/run/mariadb/mariadb.pid
|
Container images
Fedora container images are available on quay.io:
podman pull quay.io/fedora/mariadb-118
