installation of mariadb

 Mariadb is a relational database server. It’s widely used Mysql server in the world. It is originaly made by developer of Mysql. It is a well known as mariadb server in redhat /CentOs 6/7 version as we know if we installed Mysql server package in redhat / centOs 6 Version it will be labled as Mysql not Mariadb like in redhat 7. Do not get confused just package named is different nothing else.

It uses the port 3306 and open source database serve. The main configuration file is /etc/my.cnf

Installation of Mariadb Server

First thing is to do check whether is already installed or not.

rpm –qa  mariadb*

If it is not installed then run this command

Yum install mariadb* -y

Once it’s get installed.You need to check all the dependencies are installed or not by the same command.

Packages included :

  • mysql-community-devel-5.7.22-1.el7.x86_64.rpm
  • mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
  • mysql-community-client-5.7.22-1.el7.x86_64.rpm
  • mysql-community-test-5.7.22-1.el7.x86_64.rpm
  • mysql-community-server-5.7.22-1.el7.x86_64.rpm

Now You need to start/enable the services of Mariadb Server

Run following commands to do this

  1. systemctl start mariadb                           # for redhat/centOs 7

service  mysqld  start                                      # for redhat/centOs 6

  1. systemctl enable mariadb                         # for redhat/centOs 7

chkconfig  mysqld  on                                      # for redhat/centOs 6

3. Check status

In Case, You find any problem in start the service try this commands

systemctl start/enable  mysqld

You’re done



Please enter your comment!
Please enter your name here