How To Install mariadb.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mariadb.x86_64 in Amazon Linux 2. mariadb.x86_64 is A community developed branch of MySQL

Introduction

In this tutorial we learn how to install mariadb.x86_64 on Amazon Linux 2.

What is mariadb.x86_64

MariaDB is a community developed branch of MySQL. MariaDB is 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 to install mariadb.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mariadb.x86_64.

Install mariadb.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mariadb.x86_64

How To Uninstall mariadb.x86_64 on Amazon Linux 2

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

sudo yum remove mariadb.x86_64

mariadb.x86_64 Package Contents on Amazon Linux 2

/etc/my.cnf.d/client.cnf
/usr/bin/aria_chk
/usr/bin/aria_dump_log
/usr/bin/aria_ftdump
/usr/bin/aria_pack
/usr/bin/aria_read_log
/usr/bin/msql2mysql
/usr/bin/my_print_defaults
/usr/bin/mysql
/usr/bin/mysql_find_rows
/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/share/doc/mariadb-5.5.68
/usr/share/doc/mariadb-5.5.68/COPYING
/usr/share/doc/mariadb-5.5.68/COPYING.Google
/usr/share/doc/mariadb-5.5.68/COPYING.Percona
/usr/share/doc/mariadb-5.5.68/README
/usr/share/doc/mariadb-5.5.68/README.mysql-docs
/usr/share/doc/mariadb-5.5.68/README.mysql-license
/usr/share/man/man1/aria_chk.1.gz
/usr/share/man/man1/aria_dump_log.1.gz
/usr/share/man/man1/aria_ftdump.1.gz
/usr/share/man/man1/aria_pack.1.gz
/usr/share/man/man1/aria_read_log.1.gz
/usr/share/man/man1/my_print_defaults.1.gz
/usr/share/man/man1/mysql.1.gz
/usr/share/man/man1/mysql_find_rows.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/mysqldump.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.x86_64 on Amazon Linux 2 using yum.