How To Install mariadb on Rocky Linux 8

In this tutorial we learn how to install mariadb on Rocky Linux 8. mariadb is A very fast and robust SQL database server

Introduction

In this tutorial we learn how to install mariadb on Rocky Linux 8.

What is mariadb

MariaDB is a community developed branch of MySQL - a multi-user, multi-threaded SQL database server. It is a client/server implementation consisting of a server daemon (mysqld) and many different client programs and libraries. The base package contains the standard MariaDB/MySQL client programs and generic MySQL files.

We can use yum or dnf to install mariadb on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mariadb.

Install mariadb on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mariadb using dnf by running the following command:

sudo dnf -y install mariadb

Install mariadb on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mariadb using yum by running the following command:

sudo yum -y install mariadb

How To Uninstall mariadb on Rocky Linux 8

To uninstall only the mariadb package we can use the following command:

sudo dnf remove mariadb

mariadb Package Contents on Rocky Linux 8

/etc/my.cnf.d/mysql-clients.cnf
/usr/bin/msql2mysql
/usr/bin/mysql
/usr/bin/mysql_find_rows
/usr/bin/mysql_plugin
/usr/bin/mysql_waitpid
/usr/bin/mysqlaccess
/usr/bin/mysqladmin
/usr/bin/mysqlbinlog
/usr/bin/mysqlcheck
/usr/bin/mysqldump
/usr/bin/mysqlimport
/usr/bin/mysqlshow
/usr/bin/mysqlslap
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/34aceefc932d08fbdb7c079a602b95b919aef8
/usr/lib/.build-id/61
/usr/lib/.build-id/61/cb1637b22a876cb3bb4c042ade9d5ab3cc7401
/usr/lib/.build-id/62
/usr/lib/.build-id/62/680b611f6e9857c72bdbd5bff474f7c64b5a1e
/usr/lib/.build-id/63
/usr/lib/.build-id/63/75c69b3ddb01c3e19e7993b382f5983865962c
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/9ee39ffd63ae848514baba147a74b7fbc169fa
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/733167f44cb3c7868be8fd916aedef5e8d2994
/usr/lib/.build-id/91
/usr/lib/.build-id/91/45748ca73c1a96c7cd4b19354661802bf738d2
/usr/lib/.build-id/99
/usr/lib/.build-id/99/cbfba90be43a8ef8defcd4c1f118e0c2c9a3b8
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/56cff056f14dc5a68ea6a697e6cad82bf3a58c
/usr/lib/.build-id/de
/usr/lib/.build-id/de/35324c5d1dc6c56237ee9261e4948fd7610f66
/usr/share/man/man1/msql2mysql.1.gz
/usr/share/man/man1/mysql.1.gz
/usr/share/man/man1/mysql_find_rows.1.gz
/usr/share/man/man1/mysql_plugin.1.gz
/usr/share/man/man1/mysql_waitpid.1.gz
/usr/share/man/man1/mysqlaccess.1.gz
/usr/share/man/man1/mysqladmin.1.gz
/usr/share/man/man1/mysqlbinlog.1.gz
/usr/share/man/man1/mysqlcheck.1.gz
/usr/share/man/man1/mysqldump.1.gz
/usr/share/man/man1/mysqlimport.1.gz
/usr/share/man/man1/mysqlshow.1.gz
/usr/share/man/man1/mysqlslap.1.gz

References

Summary

In this tutorial we learn how to install mariadb on Rocky Linux 8 using yum and dnf.