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
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
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. 


2 comments:

  1. For many hobbyist and photography professionals, having a helpful helping hand isn't always convenient. Also, at times the artistic creator may desire to be more in charge of attaining all of the credit for developing a special piece. During moments like this perfection is needed. That is where the camera tripod comes into play. tripod

    ReplyDelete