How to Install MariaDB on Linux Stand Alone

How to Install MariaDB on Linux Stand Alone

1- Check the Linux Version:

Check the Linux version by using below command before we download MariaDB.
# cat /etc/redhat-release

2- Create or Edit MariaDB.repo :
Create MariaDB.repo file in /etc/yum.repos.d/
# vi /etc/yum.repos.d/MariaDB.repo
name = MariaDB
baseurl =
Save the file by :wq!

3- Install MariaDB Server and MariaDB Client

# sudo yum install MariaDB-server MariaDB-client

4- Start MariaDB Service

# sudo systemctl start mysql

5- Run Secure Installation

Run the secure installation by using below statment to configure root password and other features.
# sudo mysql_secure_installation

6- Log in to MariaDB by using Root

 # mysql -uroot -p
Once you provide the root password, you will be connected to mysql and you can start working on databases.