Plesk

How to upgrade MySQL from 5.1 to 5.5 on Plesk for Linux?

Question

How to upgrade MySQL from the version 5.1 to 5.5 on Linux?

Answer

Plesk Installer gets packages from base repositories of an operating system installed.

If MySQL 5.5 is not listed in the base repository, it is not available in Plesk Installer.

In that case, in order to upgrade MySQL version to 5.5, it is needed to configure a third-party repository.

Note: Upgrade can be performed in a command-line interface with the instructions below at your own risk. This task is supposed to be performed by a system administrator.

Note: PHP package can also be upgraded during this procedure. Oracle MySQL yum repository is supported only by Plesk Onyx. Also, it is required to have an SSH connection to the server with administrative privileges.

  1. Install the Atomicorp repository:

    # wget -q -O - https://www.atomicorp.com/installers/atomic | sh

  2. Upgrade MySQL:

    # yum upgrade mysql

  3. Restart the MySQL service:

    # service mysqld restart

  1. Upgrade MySQL databases:

    # mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`

  2. Execute this command to update the package version inside Plesk:

    # plesk bin service_node --update local

  1. Update all system packages:

    # apt-get update

  2. Upgrade MySQL:

    # apt-get upgrade mysql-server

  3. Restart the MySQL service:

    # service mysql restart

  4. Upgrade MySQL databases:

    # mysql_upgrade -uadmin -p`cat /etc/psa/.psa.shadow`

  5. Execute this command to update the package version inside Plesk:

    # plesk bin service_node --update local

 

Additional information