View and upgrade instance versions

Updated at:

This topic describes how to view and upgrade the version of a PolarDB-X instance.

View instance versions

You can view the current version of your instance in the following ways:

  • You can view it in the console.

    1. Log on to the PolarDB-X console.

    2. In the upper-left corner of the page, select the region where the target instance is located.

    3. On the Instances page, click the PolarDB-X 2.0 tab.

    4. Find the target instance and click the instance ID.

    5. In the Configuration Information section, view the Version.

  • View the version using the select version() command.

    Connect to the PolarDB-X database. Then, run the following select version() command to view the current version of the instance:

    select version();
    +-----------------------------+
    | VERSION()                   |
    +-----------------------------+
    | 5.6.29-TDDL-5.4.8-16079964  |
    +-----------------------------+
    1 row in set (0.00 sec)         
    Note
    • In this example, 5.4.8-16079964 is the current version of the instance.

    • For more information about how to connect to a database, see Connect to a database.

Upgrade the instance version

You can upgrade PolarDB-X instances, including primary and read-only instances, to the latest version from the console to use new features.

Warning
  • After you upgrade the instance, both the primary instance and its read-only instances are upgraded to the latest version.

  • The upgrade process causes transient disconnections and may result in a few errors. We recommend that you perform this operation during off-peak hours.

Procedure

  1. Log on to the PolarDB-X console.

  2. In the upper-left corner of the page, select the region where the target instance is located.

  3. On the Instances page, click the PolarDB-X 2.0 tab.

  4. Find the target instance and click the instance ID.

  5. On the Basic Information page, find the Configuration Information section. Then, click Upgrade Kernel Version.

    • Enterprise Edition

      In the Upgrade Kernel Version dialog box that appears, select the latest or recommended version.

    • Standard Edition

      The upgrade task starts. You can click the 2 icon in the upper-right corner of the page to view the progress of the upgrade task.

References

Compute node release notes