How To Install mariadb-server on Rocky Linux 8

In this tutorial we learn how to install mariadb-server on Rocky Linux 8. mariadb-server is The MariaDB server and related files

Introduction

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

What is mariadb-server

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. This package contains the MariaDB server and some accompanying files and directories. MariaDB is a community developed branch of MySQL.

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

Install mariadb-server 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-server using dnf by running the following command:

sudo dnf -y install mariadb-server

Install mariadb-server 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-server using yum by running the following command:

sudo yum -y install mariadb-server

How To Uninstall mariadb-server on Rocky Linux 8

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

sudo dnf remove mariadb-server

mariadb-server Package Contents on Rocky Linux 8

/etc/logrotate.d/mariadb
/etc/my.cnf.d/enable_encryption.preset
/etc/my.cnf.d/mariadb-server.cnf
/etc/security/user_map.conf
/run/mariadb
/usr/bin/aria_chk
/usr/bin/aria_dump_log
/usr/bin/aria_ftdump
/usr/bin/aria_pack
/usr/bin/aria_read_log
/usr/bin/innochecksum
/usr/bin/mariadb-service-convert
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/mysql_install_db
/usr/bin/mysql_secure_installation
/usr/bin/mysql_tzinfo_to_sql
/usr/bin/mysqld_safe
/usr/bin/mysqld_safe_helper
/usr/bin/replace
/usr/bin/resolve_stack_dump
/usr/bin/resolveip
/usr/bin/wsrep_sst_common
/usr/bin/wsrep_sst_mariabackup
/usr/bin/wsrep_sst_mysqldump
/usr/bin/wsrep_sst_rsync
/usr/bin/wsrep_sst_rsync_tunnel
/usr/bin/wsrep_sst_rsync_wan
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/28c4dc4bf508fa1536e7ab35c14cf9b53bd4da
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/c0c9574568613d5d83b520bd7c4b331fb7befb
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/ab738f4af77de4445b3a68207ad117e41fb50f
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/b4918052adec0fd456c8283a13cefb67c8496d
/usr/lib/.build-id/10
/usr/lib/.build-id/10/3dea176a78e18145761f331e4b61f95308fced
/usr/lib/.build-id/14
/usr/lib/.build-id/14/61799f20d713463c8d9bbe64ef75e6f3a34950
/usr/lib/.build-id/21
/usr/lib/.build-id/21/9c64a3313882630c84f9808e3b9eaa51cae34b
/usr/lib/.build-id/25
/usr/lib/.build-id/25/85e3e4d4e613dc5d97ef545679041c99cd3eee
/usr/lib/.build-id/27
/usr/lib/.build-id/27/d2ece485755ec09d0381333b34fad9e5cd7dab
/usr/lib/.build-id/2a/83fe70abf7fb5961a5258b3b0b43bd64336296
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/22a6c6e8a4b998ed3bed190825f5d5247db2c0
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/c9db26a8b7c6e0357c90322b256aa65e01bd24
/usr/lib/.build-id/36
/usr/lib/.build-id/36/5b543e731167496e0f9c5420d27964b5c51524
/usr/lib/.build-id/37
/usr/lib/.build-id/37/42a150cbd359922bd8329ec6cac54bd12ea948
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/90375f1b9cc4718fe4dd01271e681cc6e5b029
/usr/lib/.build-id/44
/usr/lib/.build-id/44/8f43ee7364090a950c186a4603eb921ca1f0a0
/usr/lib/.build-id/54
/usr/lib/.build-id/54/d764c325f879d41022621f43623bf4ee5ca15e
/usr/lib/.build-id/56
/usr/lib/.build-id/56/3c7e37a929fcfbd0dcc4afe0b52226606e81f3
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/47d0c1eb4c7e6d39ba877063a87b226293daf3
/usr/lib/.build-id/60
/usr/lib/.build-id/60/cded802040820273d70d701333e2ac61131e03
/usr/lib/.build-id/63/ea06d35068728d1243fb5fb5b02d09d744814a
/usr/lib/.build-id/65
/usr/lib/.build-id/65/ba12b542329b7e2fbcf4b9b610e03de2678475
/usr/lib/.build-id/68
/usr/lib/.build-id/68/e5e8bee828fbe133661cfd7e24b6f9fd5e08ca
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/74f99c0ddf3a9cc7021c1b3e15858b98dc8c2e
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/7244e1e90238014fbb7285b12d34ecbe0b3da8
/usr/lib/.build-id/74
/usr/lib/.build-id/74/a71c69ef8fb513792f92eb14e7458d99f4e94b
/usr/lib/.build-id/76
/usr/lib/.build-id/76/ed4b4e92a906a3f417720804380caf2a076e44
/usr/lib/.build-id/83
/usr/lib/.build-id/83/53992ab8f49f7bd08a4b6075c4d5f37d3fd4f3
/usr/lib/.build-id/83/793cc7d168e776cdd6ffc02322fcda12c66156
/usr/lib/.build-id/87
/usr/lib/.build-id/87/b82ac3f90ed8765488607a59575522b155a4e8
/usr/lib/.build-id/90
/usr/lib/.build-id/90/ea2e2e1ab11e2397c4743f2af4b3997b5e5dee
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/a417cc49f6aec931f893e2b333ac6ee2a7a708
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/470ae5cf2a587d97bdd2e4175b00233d5e0909
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/480389c45a0264a918682c14fe060414166db2
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/754bd7735788ac21658ac1141a4a755c6f9bda
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/b8c37e7df8e489f61aa74187dea4b374a93d5f
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/b8c6fc1735881c8aee9e7293697897d11f14e8
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/c77fc8822416b491fadb17b07a89d35de6524a
/usr/lib/.build-id/b4/d38f9a9dfdedb6237d1134383e2bfb911b0dca
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/253c7e8b4061685495e93f67d7f6f3b1adb997
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/42807ff1abf6f8e3ced4bfd7c66f8c4bea2528
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/9ea518ecce5f55043991f30f0e6c549a5fb52a
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/96f128a25fd8bf1531f14e803bc2c399da02ee
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/cbcc210ea4efb2dbfb667c8ad68958e0ff7eed
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/bcf860fd7764332835638415c884f9bb1713a1
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/d7b51522f41410933b363f8c975905c18e545d
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/503a7f775bf11711bbdb0775d058c65c7a7b70
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/68c31f78ff3b341b07da1324b2199fa9dd4a6f
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/a78f59c51686ecd305efee3a40c3e8bc0fc73f
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/db29dcde8068e2ba301e3505a8e07590886083
/usr/lib/systemd/system/mariadb.service
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]/use_galera_new_cluster.conf
/usr/lib/sysusers.d/mariadb.conf
/usr/lib/tmpfiles.d/mariadb.conf
/usr/lib64/mariadb
/usr/lib64/mariadb/INFO_BIN
/usr/lib64/mariadb/INFO_SRC
/usr/lib64/mariadb/plugin
/usr/lib64/mariadb/plugin/adt_null.so
/usr/lib64/mariadb/plugin/auth_0x0100.so
/usr/lib64/mariadb/plugin/auth_ed25519.so
/usr/lib64/mariadb/plugin/auth_pam.so
/usr/lib64/mariadb/plugin/auth_socket.so
/usr/lib64/mariadb/plugin/auth_test_plugin.so
/usr/lib64/mariadb/plugin/daemon_example.ini
/usr/lib64/mariadb/plugin/debug_key_management.so
/usr/lib64/mariadb/plugin/dialog_examples.so
/usr/lib64/mariadb/plugin/disks.so
/usr/lib64/mariadb/plugin/example_key_management.so
/usr/lib64/mariadb/plugin/file_key_management.so
/usr/lib64/mariadb/plugin/ha_example.so
/usr/lib64/mariadb/plugin/ha_federated.so
/usr/lib64/mariadb/plugin/ha_spider.so
/usr/lib64/mariadb/plugin/ha_test_sql_discovery.so
/usr/lib64/mariadb/plugin/handlersocket.so
/usr/lib64/mariadb/plugin/libdaemon_example.so
/usr/lib64/mariadb/plugin/locales.so
/usr/lib64/mariadb/plugin/metadata_lock_info.so
/usr/lib64/mariadb/plugin/mypluglib.so
/usr/lib64/mariadb/plugin/qa_auth_client.so
/usr/lib64/mariadb/plugin/qa_auth_interface.so
/usr/lib64/mariadb/plugin/qa_auth_server.so
/usr/lib64/mariadb/plugin/query_cache_info.so
/usr/lib64/mariadb/plugin/query_response_time.so
/usr/lib64/mariadb/plugin/server_audit.so
/usr/lib64/mariadb/plugin/simple_password_check.so
/usr/lib64/mariadb/plugin/sql_errlog.so
/usr/lib64/mariadb/plugin/test_versioning.so
/usr/lib64/mariadb/plugin/wsrep_info.so
/usr/lib64/security/pam_user_map.so
/usr/libexec/mysql-check-socket
/usr/libexec/mysql-check-upgrade
/usr/libexec/mysql-prepare-db-dir
/usr/libexec/mysql-scripts-common
/usr/libexec/mysqld
/usr/share/doc/mariadb-server
/usr/share/doc/mariadb-server/README.wsrep_sst_rsync_tunnel
/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/galera_new_cluster.1.gz
/usr/share/man/man1/galera_recovery.1.gz
/usr/share/man/man1/innochecksum.1.gz
/usr/share/man/man1/mariadb-service-convert.1.gz
/usr/share/man/man1/my_print_defaults.1.gz
/usr/share/man/man1/myisam_ftdump.1.gz
/usr/share/man/man1/myisamchk.1.gz
/usr/share/man/man1/myisamlog.1.gz
/usr/share/man/man1/myisampack.1.gz
/usr/share/man/man1/mysql.server.1.gz
/usr/share/man/man1/mysql_install_db.1.gz
/usr/share/man/man1/mysql_secure_installation.1.gz
/usr/share/man/man1/mysql_tzinfo_to_sql.1.gz
/usr/share/man/man1/mysqld_safe.1.gz
/usr/share/man/man1/mysqld_safe_helper.1.gz
/usr/share/man/man1/replace.1.gz
/usr/share/man/man1/resolve_stack_dump.1.gz
/usr/share/man/man1/resolveip.1.gz
/usr/share/man/man1/wsrep_sst_common.1.gz
/usr/share/man/man1/wsrep_sst_mariabackup.1.gz
/usr/share/man/man1/wsrep_sst_mysqldump.1.gz
/usr/share/man/man1/wsrep_sst_rsync.1.gz
/usr/share/man/man1/wsrep_sst_rsync_wan.1.gz
/usr/share/man/man8/mysqld.8.gz
/usr/share/mariadb/fill_help_tables.sql
/usr/share/mariadb/install_spider.sql
/usr/share/mariadb/maria_add_gis_sp.sql
/usr/share/mariadb/maria_add_gis_sp_bootstrap.sql
/usr/share/mariadb/mysql_performance_tables.sql
/usr/share/mariadb/mysql_system_tables.sql
/usr/share/mariadb/mysql_system_tables_data.sql
/usr/share/mariadb/mysql_test_data_timezone.sql
/usr/share/mariadb/mysql_test_db.sql
/usr/share/mariadb/mysql_to_mariadb.sql
/usr/share/mariadb/policy
/usr/share/mariadb/policy/selinux
/usr/share/mariadb/policy/selinux/README
/usr/share/mariadb/policy/selinux/mariadb-server.fc
/usr/share/mariadb/policy/selinux/mariadb-server.te
/usr/share/mariadb/policy/selinux/mariadb.pp
/usr/share/mariadb/policy/selinux/mariadb.te
/usr/share/mariadb/systemd/mariadb.service
/usr/share/mariadb/systemd/[email protected]
/usr/share/mariadb/wsrep.cnf
/usr/share/mariadb/wsrep_notify
/var/lib/mysql
/var/log/mariadb
/var/log/mariadb/mariadb.log

References

Summary

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