Upgrading MySQL on Linux
You can upgrade to a newer version of MySQL on the connected Linux server on which Unified Manager is installed to obtain fixes for security vulnerabilities. For any minor upgrade, the base version of MySQL must be 8.0.20 or later. If the installed version of MySQL on your system is earlier than 8.0.20, the Unified Manager 9.7 upgrade process automatically upgrades MySQL to 8.0.20. You must not run a standalone upgrade of MySQL from an earlier version to 8.0.20.
Before you begin
Manual upgrade of MySQL is applicable for internet-connected systems only. If the installed version of MySQL on your system is 5.7, then you must not attempt to directly upgrade MySQL to version 8.0.20. It results in application data loss. |
You must have root privileges for the Linux system on which Unified Manager is installed.
About this task
You can upgrade the base version of MySQL 8.0.20 to later versions for only minor updates.
Steps
-
Log in as a root user on the Unified Manager host machine.
-
Download the latest MySQL Community Server
.rpm
bundle on the target system. -
Untar the bundle to a directory on the target system.
-
You get multiple
.rpm
packages in the directory after untarring the bundle, but Unified Manager only needs the following rpm packages:-
mysql-community-client-8.0.20
-
mysql-community-libs-8.0.20
-
mysql-community-server-8.0.20
-
mysql-community-common-8.0.20
-
mysql-community-libs-compat-8.0.20
Delete all other
.rpm
packages. However, installing all packages in an rpm bundle does not cause errors. -
-
Stop the Unified Manager service and the associated MySQL software in the order shown:
systemctl stop ocieau
systemctl stop ocie
systemctl stop mysqld -
Invoke the upgrade of MySQL by using the following command:
yum install *.rpm
*.rpm
refers to the.rpm
packages in the directory where you downloaded the newer version of MySQL. -
Start Unified Manager in the order shown:
systemctl start mysqld
systemctl start ocie
systemctl start ocieau