How To Install MySQL/MariaDB on Fedora 23

Posted on by dpepper
Reading Time: < 1 minute

MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easily integrated into most MySQL deployments. MariaDB offers more storage engines than MySQL, including Cassandra (NoSQL), XtraDB (drop-in replacement for InnoDB), and OQGRAPH.

Pre-Flight Check

  • These instructions are intended for installing MariaDB on a single Fedora 23 node.
  • We’ll be working as root on a Liquid Web Self Managed Fedora 23 server.
  • If you have any questions about compatibility, you can find answers at: MariaDB versus MySQL – Compatibility.

Step #1: Install MariaDB

As always, we’ll first ensure that our existing packages are up to date:

dnf -y update

MariaDB can be installed with one command:

dnf -y install mysql-server mysql

Step #2: Start MySQL/MariaDB

Start MySQL (now MariaDB) with the following command:

systemctl start mariadb

To ensure that MySQL/MariaDB starts at boot, run the following command:

systemctl enable mariadb

That should produce output similar to the following:

[root@host ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/mariadb.service.

You can check the status of MySQL/MariaDB with:

systemctl status mariadb

Step #3: Using MySQL/MariaDB

You connect to MySQL/MariaDB with the following command:


That should produce output similar to the following:

[root@host ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.0.21-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

To exit and return to your command prompt, simply execute the following command:


Avatar for dpepper

About the Author: dpepper

Latest Articles

What is LiteSpeed Web Server?

Read Article

Useful Features in cPanel for Your Sites

Read Article

How to Clone a Drupal Site to Another Domain

Read Article

Accessing Man Pages on Ubuntu 16.04 LTS

Read Article

What is VMware Fusion?

Read Article