How To Install mysql on Rocky Linux 8
Introduction
In this tutorial we learn how to install mysql
on Rocky Linux 8.
What is mysql
MySQL is a multi-user, multi-threaded SQL database server. MySQL is a client/server implementation consisting of a server daemon (mysqld) and many different client programs and libraries. The base package contains the standard MySQL client programs and generic MySQL files.
We can use yum
or dnf
to install mysql
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mysql.
Install mysql 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 mysql
using dnf
by running the following command:
sudo dnf -y install mysql
Install mysql 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 mysql
using yum
by running the following command:
sudo yum -y install mysql
How To Uninstall mysql on Rocky Linux 8
To uninstall only the mysql
package we can use the following command:
sudo dnf remove mysql
mysql Package Contents on Rocky Linux 8
/usr/bin/mysql
/usr/bin/mysql_config_editor
/usr/bin/mysqladmin
/usr/bin/mysqlbinlog
/usr/bin/mysqlcheck
/usr/bin/mysqldump
/usr/bin/mysqlimport
/usr/bin/mysqlpump
/usr/bin/mysqlshow
/usr/bin/mysqlslap
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/bf6a06cf7ba86adf79144c0a6ddff09cf0a09d
/usr/lib/.build-id/10
/usr/lib/.build-id/10/878408741234ae550ba7e971e433475e65bff3
/usr/lib/.build-id/50
/usr/lib/.build-id/50/7a609cddc1f95fba9d2fce2044078c6ee1c143
/usr/lib/.build-id/54
/usr/lib/.build-id/54/188f8ba510a8fc6770f00ffb6b044e8860796c
/usr/lib/.build-id/73
/usr/lib/.build-id/73/ee587496f2e0edb12409f41a530251054bdfb8
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/217067be6a5574dc41ee87112a0926fadcd76e
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/02365f2bd62ef0e51430df6b8363170ceb879c
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/422ac04899b1cae5773dab3edcbb357c527472
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/f18c1086bed0c1427345e3c0a62ca3b2fd897f
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/edb80893d8419dd8844a3c8bf0f9718d0b3681
/usr/share/man/man1/mysql.1.gz
/usr/share/man/man1/mysql_config_editor.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/mysqlpump.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 mysql
on Rocky Linux 8 using yum and dnf.