MySQL 8.4.x on RHEL 8+
This article provides a detailed procedure for installing and configuring MySQL 8.4.x on Red Hat Enterprise Linux (RHEL) 8 or 9 systems. It includes prerequisites, installation steps, initial setup, and recommended performance tuning parameters as per OvalEdge guidelines.
Prerequisites
Ensure the following conditions before starting the installation:
A virtual machine (VM) or server running RHEL 8.x or 9.x
A user account with sudo privileges
An active internet connection is required to download packages
SELinux and firewall considerations (adjust as per your security policies)
Installation Steps
System Update
Update the system packages.
sudo yum update -ySample Reference Screenshot:
Install Required Utilities
Install
yum-utilsto manage repositories.sudo yum install -y yum-utils
Configure MySQL Repository
Download and install the official MySQL 8.4 repository RPM.
For RHEL 8:
wget https://dev.mysql.com/get/mysql84-community-release-el8-1.noarch.rpm sudo rpm -ivh mysql84-community-release-el8-1.noarch.rpmFor RHEL 9:
wget https://dev.mysql.com/get/mysql84-community-release-el9-1.noarch.rpm sudo rpm -ivh mysql84-community-release-el9-1.noarch.rpmSample Reference Screenshot:
Disable Default MySQL Module
Disable the default MySQL module to avoid conflicts.
sudo yum module disable -y mysqlSample Reference Screenshot:
Install MySQL Server
Install the MySQL community server package.
sudo yum localinstall -y mysql84-community-release-el8-1.noarch.rpmSample Reference Screenshot:
Start and Enable MySQL Service
Start the MySQL service and enable it to run at boot.
sudo systemctl start mysqld sudo systemctl enable mysqld sudo systemctl status mysqldSample Reference Screenshot:
Verify the installed version:
mysql --versionSample Reference Screenshot:
Retrieve Temporary Root Password
Check the MySQL log to retrieve the temporary root password.
sudo grep 'temporary password' /var/log/mysqld.logSample Reference Screenshot:
Secure MySQL Installation
Log in to MySQL and configure the root account.
mysql -u root -pSample Reference Screenshot:
Run the following SQL commands:
ALTER USER 'root'@'localhost' IDENTIFIED BY '<NewSecurePassword>'; DELETE FROM mysql.user WHERE User=''; DROP DATABASE IF EXISTS test; DELETE FROM mysql.db WHERE Db='test' OR Db='test_%'; FLUSH PRIVILEGES;Sample Reference Screenshot:
Apply Recommended Configuration
Edit the MySQL configuration file:
sudo vi /etc/my.cnfAppend or update the following parameters:
max_binlog_size=1G binlog_expire_logs_seconds=2592000 group_concat_max_len=4294967295 max_connections=600 max_allowed_packet=1G bind-address=0.0.0.0 innodb_buffer_pool_size=8GSample Reference Screenshot:
Restart MySQL Service
Apply the configuration changes by restarting the MySQL service.
sudo systemctl restart mysqld sudo systemctl enable mysqldSample Reference Screenshot:
OvalEdge Database Creation
Import OvalEdge Schema
Place the
MasterScripts.sqlfile (provided by the OvalEdge team) in the MySQL VM. Sample Reference Screenshot:Connect to MySQL:
mysql -u root -pSample Reference Screenshot:
Run the script:
SOURCE <path_to_MasterScripts.sql>;
Verify Database Creation
Check if the OvalEdge database has been created:
SHOW DATABASES;Sample Reference Screenshot:
Expected output should include:
ovaledgedb
Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

