Installation of MariaDB Database Server On CentOS 7

Installation of MariaDB Database, MariaDB Server is reliable, high performance, and full-featured relational database. This allows you to migrate from MySQL to MariaDB without making any changes in your applications. We can install the MariaDB database server on Linux.

Installation of MariaDB Database Server On CentOS 7:

Database structure and indexes are the same as the MySQL database server. It uses the port 3306 and open-source database server. The main configuration file is /etc/my.cnf

Check Out: Solve MySQL Can’t Connect To Local MySQL Server Through Socket

Installation of MariaDB Server

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

rpm –qa mariadb*

If 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.

Check Out: Restore & Backup Of Mysql Server

install mariadb

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

Check Out: Different Ways of Finding Table Size In Mysql Server

Use the below commands to start the services.

systemctl start mariadb  # RedHat/Centos 7
service mysqld start # RedHat/Centos 6

linux install mariadb

Use the below commands to enable the services at boot time.

systemctl enable mariadb # RedHat/Centos 7
chkconfig mysqld on # RedHat/Centos 6

mariadb install on linux

Check status.

install mariadb database server

In Case, You find any problem in starting the service try these commands

systemctl start/enable mysqld

We can check the MariaDB version using select version();

That’s it.install mariadb database server on linux

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment