Install MariaDB on CentOS Linux

Install MariaDB on CentOS Linux

Install MariaDB on CentOS Linux

MariaDB is the new challenger to MySQL and is at least worth checking out. Let’s get started! Login to your server, and su to root

Root shell prompt on CentOS

what we need to do is create a repo file, MariaDB is not yet available from Yum

MariaDB yum repository file (/etc/yum.repos.d) contents

from here configure and add the following:

MariaDB repo definition with name, baseurl and gpgkey

Save/Quit

do a Yum update to ensure the repo works

yum update command to test the new MariaDB repository

as you can see, it works, and wants to install MariaDB + Dependencies

yum offering MariaDB packages and dependencies from the new repo

from here, install MariaDB + Client

MariaDB install notice reminding you to set the root password

notice that there is some good info, to change the root password

MariaDB post-install message with mysqladmin password instructions

set the service to run on startup, and now start the service

chkconfig mysql on and /etc/init.d/mysql start

and as mentioned before, let’s set the root MariaDB password

mysqladmin -u root password command setting the MariaDB root password

–please note that it would not be intelligent to use the above listed password ‘SuperSecretPassword’

Done!

mysqladmin root password command completed

that was simple, let’s test it to make sure it works:

mysql -u root -p logging in to the MariaDB monitor

Perfect, we are in!

That’s it!

To get a hosted MariaDB server visit www.zwiegnet.com/go to get started today!

Related guides: Install PostgreSQL on RHEL/CentOS/Oracle/Rocky/Alma | Performing a MySQL Upgrade

Leave a Reply

Your email address will not be published. Required fields are marked *