How to Install MariaDB on Fedora 29

Install MariaDB on Fedora 29

MariaDB is the fork of MySQL and backward compatible replacement for MySQL. In Fedora 29 main repository by default contains repository for MariaDB. Here in this tutorial, we are going to show you how to install MariaDB 10 on Fedora 29.


Before you start installing MariaDB 10.3 on Fedora 29. You must have a non-root user account on your server with sudo privileges.

1. Install MariaDB 10

First create a new file /etc/yum.repos.d/mariadb.repo to enable MariaDB 10 repository on Fedora using following command:

sudo nano /etc/yum.repos.d/mariadb.repo

Now paste following code inside above file to get started:

# MariaDB 10.3 Fedora repository list - created 2019-05-06 17:40 UTC # [mariadb] name = MariaDB baseurl = gpgkey= gpgcheck=1

Now install mariadb-server and mariadb-client packages on Fedora 29 run below command, You may be asked to confirm importing GPG key then enter Y to continue:

sudo dnf install mariadb mariadb-server

To start MariaDB service by using following command:

sudo systemctl start mariadb

To check status and confirm the installation you can type following command:

sudo systemctl status mariadb

The output should be:

● mariadb.service - MariaDB 10.3.8 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
   Active: inactive (dead)
     Docs: man:mysqld(8)

To start MariaDB after boot process type following command in terminal:

sudo systemctl enable mariadb

2. Setting Up MariaDB

After installation, we have to improve MariaDB security by typing following command:

sudo mysql_secure_installation

NOTE: it is recommended to answer ‘Y’ for all questions asked during secure installation.

You can log in to MariaDB by typing

mysql -u root -p


You have successfully learned how to install MariaDB 10 on Fedora 29. If you have any queries please don’t forget to comment out.