MySQL Upgrade from 8.0.4 to 8.4.x (RHEL) Internet
This article describes the steps, checks, and dependencies required to upgrade MySQL from version 8.0.4 to 8.4.x on RHEL 8 systems. It covers prerequisites, pre-upgrade tasks, upgrade execution, post-upgrade validations, and rollback procedures to ensure a safe and reliable production upgrade.
Prerequisites
OS Compatibility
Verify that the operating system supports MySQL 8.4.
Recommended: RHEL 8.x or later.
Check the OS version:
cat /etc/os-release
System Requirements
Ensure sufficient disk space for backup and rollback (
df -Th).Confirm root or sudo access.
All listed commands must be executed.
Pre-Upgrade Checks
Backup
Perform a logical backup of the MySQL database.
Log Management Procedure
Confirm you are backing up the correct schema.
mkdir /home/ec2-user/mysql_backup mysqldump -u root -p ovaledgedb > /home/ec2-user/mysql_backup/ovaledgedb_backup.sql
Back up configuration files:

Database Size and Row Count Check
Run the following queries before upgrading:
Database size query:

Row count query: (Download SQL script)

Save outputs for post-upgrade comparison.
Upgrade Execution
Stop MySQL Services
Stop MySQL services by running the following command

Install MySQL 8.4.x
Download repository package:

Install repository:

Disable any existing MySQL 8.0 repositories:
Disable MySQL module in the package manager:

Install MySQL 8.4.x:

Check installed version:

Update Configuration
Edit the configuration file:
Save file and restart MySQL:

Verify upgrade by checking MySQL version.

Post-Upgrade Validations
Verify Row Counts and Database Size
Connect to MySQL:
Run validation queries:
Row count query: SQL Script

Database size query:

Compare results with pre-upgrade outputs.
Update MySQL Parameters
Add/update parameters in
/etc/my.cnf:Adjust values as per client instance size.

Restart MySQL:

Update Application User Passwords (Optional)
Change OvalEdge MySQL user passwords:
At this stage, the MySQL database has been upgraded to version 8.4 and the default OvalEdge MySQL password has been changed.
Rollback Plan (if required)
Take backup of MySQL 8.4 installation before rollback:
Stop MySQL services, reinstall MySQL 8.0.4, start the service, and restore data from backups.
Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Was this helpful?

