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

  1. System Update

    • Update the system packages.

      sudo yum update -y

      Sample Reference Screenshot:

  1. Install Required Utilities

    • Install yum-utils to manage repositories.

  1. Configure MySQL Repository

    • Download and install the official MySQL 8.4 repository RPM.

    • For RHEL 8:

    • For RHEL 9:

      Use the correct .rpm file based on the OS version.

      Sample Reference Screenshot:

  1. Disable Default MySQL Module

    • Disable the default MySQL module to avoid conflicts.

      Sample Reference Screenshot:

  1. Install MySQL Server

    • Install the MySQL community server package.

      Sample Reference Screenshot:

  1. Start and Enable MySQL Service

    • Start the MySQL service and enable it to run at boot.

      Sample Reference Screenshot:

    • Verify the installed version:

      Sample Reference Screenshot:

  1. Retrieve Temporary Root Password

    • Check the MySQL log to retrieve the temporary root password.

      Sample Reference Screenshot:

  1. Secure MySQL Installation

    • Log in to MySQL and configure the root account.

      Sample Reference Screenshot:

    • Run the following SQL commands:

      Replace <NewSecurePassword> with a strong, secure password.

      Sample Reference Screenshot:

  1. Apply Recommended Configuration

    • Edit the MySQL configuration file:

    • Append or update the following parameters:

      Sample Reference Screenshot:

      • Set bind-address=0.0.0.0 only if MySQL and the application reside on different VMs.

      • Adjust innodb_buffer_pool_size based on system RAM (typically 50%–70%).

  2. Restart MySQL Service

    • Apply the configuration changes by restarting the MySQL service.

      Sample Reference Screenshot:

OvalEdge Database Creation

  1. Import OvalEdge Schema

    • Place the MasterScripts.sql file (provided by the OvalEdge team) in the MySQL VM. Sample Reference Screenshot:

    • Connect to MySQL:

      Sample Reference Screenshot:

    • Run the script:

      Replace <path_to_MasterScripts.sql> with the actual file path.

  1. Verify Database Creation

    • Check if the OvalEdge database has been created:

      Sample Reference Screenshot:

    • Expected output should include:

      • ovaledgedb


Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?