My Oracle Support Banner

How to Upgrade MySQL Server Using RPMs (Doc ID 1991640.1)

Last updated on AUGUST 28, 2023

Applies to:

MySQL Server - Version 4.0 and later
Generic Linux

Goal

Upgrade MySQL Server using RPM, between major versions or patch releases.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Pre-requisites
 Read "How to Upgrade MySQL Server" documents first
 Check the compatibility between versions
 Upgrade procedure
 1- Backup first
 2- Fix any issues found after you ran the util.checkForServerUpgrade()
 3- Stop Server
 4- Upgrade Server
 Upgrade to version 5.6 or lower
 Upgrade to version 5.7.x or 8.x
 5- Start Server (if not already started before)
 6- Run mysql_upgrade (*ONLY* when upgrading to versions before v8.0.16)
 7- Verify the server tables and data
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.