Install MariaDB 10.1.14 on CentOS 7

Create a repo file under /etc/yum.repos.d/.

sudo nano /etc/yum.repos.d/mariadb.repo
And put the following text into the file.

# MariaDB 10.1 CentOS repository
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Save and close this file. Then install MariaDB 10.1.14 with:

sudo yum install MariaDB-server MariaDB-client

After it’s installed, start MariaDB with systemctl.

sudo systemctl start mariadb

Check status:

systemctl status mariadb

We can see that MariaDB server is running and auto start is enabled. If you see it’s disabled, then you can enable auto start with:

sudo systemctl enable mariadb

Check MariaDB version with this command:

mysql –version

Now run the post installation security script.

sudo mysql_secure_installation

Follow the instruction and set up your Maria DB

0

About the author

Janaki(http://janakiranjan.com) - A Software developer with 9+ years of experience in multiple technology projects across web, mobile, and cloud applications with expertise in PHP, C#, MySQL, Web services and open source platforms.

Similar Posts

Comments are closed.