Upgrading MySQL on Linux

Contributors netapp-manini

You can upgrade to a newer version of MySQL on the Linux server on which Unified Manager is installed to obtain fixes for security vulnerabilities. If the installed version of MySQL on your system is earlier than 8.0.27, the Unified Manager 9.10 upgrade process automatically upgrades MySQL to 8.0.27. You should not run a standalone upgrade of MySQL from an earlier version to 8.0.27.

What you’ll need

You must have root privileges for the Linux system on which Unified Manager is installed.

You can upgrade the base version of MySQL 8.0.27 to later versions for only minor updates.

  1. Log in as a root user on the Unified Manager host machine.

  2. Download the latest MySQL Community Server .rpm bundle on the target system.

  3. Untar the bundle to a directory on the target system.

  4. 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.27

    • mysql-community-libs-8.0.27

    • mysql-community-server-8.0.27

    • mysql-community-common-8.0.27

    • mysql-community-client-plugins-8.0.27 Delete all other .rpm packages. However, installing all packages in an rpm bundle does not cause errors.

  5. Stop the Unified Manager service and the associated MySQL software in the order shown:

    systemctl stop ocieau

    systemctl stop ocie

    systemctl stop mysqld

  6. 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.

  7. Start Unified Manager in the order shown:

    systemctl start mysqld

    systemctl start ocie

    systemctl start ocieau