Howto install MariaDB CentOS 7

Howto install MariaDB CentOS 7CentOS

MariaDB is a  replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments.

Step 1: Remove mysql-server if you had in your CentOS

[root@IThelpblog ~]# yum erase mysql-server mysql
Loaded plugins: fastestmirror
Resolving Dependencies
–> Running transaction check
—> Package mysql-community-client.x86_64 0:5.6.29-2.el7 will be erased
—> Package mysql-community-server.x86_64 0:5.6.29-2.el7 will be erased
–> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Removing:
mysql-community-client x86_64 5.6.29-2.el7 @mysql56-community 88 M
mysql-community-server x86_64 5.6.29-2.el7 @mysql56-community 245 M

Transaction Summary
=======================================================================================================================================================================
Remove 2 Packages

Installed size: 333 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Erasing : mysql-community-server-5.6.29-2.el7.x86_64 1/2
Erasing : mysql-community-client-5.6.29-2.el7.x86_64 2/2
Verifying : mysql-community-client-5.6.29-2.el7.x86_64 1/2
Verifying : mysql-community-server-5.6.29-2.el7.x86_64 2/2

Removed:
mysql-community-client.x86_64 0:5.6.29-2.el7 mysql-community-server.x86_64 0:5.6.29-2.el7

Complete!

 

Step 2: Install Mariadb-server

[root@IThelpblog yum.repos.d]# yum -y install mariadb-server mariadb

Step 3: Start Mariadb

[root@IThelpblog yum.repos.d]# systemctl start mariadb

Step 4: Put Mariadb starts at boot

[root@IThelpblog yum.repos.d]# systemctl enable mariadb

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>