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 :
Now You need to start/enable the services of Mariadb Server
Run following commands to do this
- systemctl start mariadb # for redhat/centOs 7
service mysqld start # for redhat/centOs 6
- 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