All Products
Search
Document Center

PolarDB:View and update the version of an instance

更新時間:Jun 28, 2024

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

View the version of an instance

You can use the following methods to view the version of your instance:

  • Use the console.

    1. Log on to the PolarDB for Xscale console.

    2. In the top navigation bar, select the region in which your instance resides.

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

    4. On the tab that appears, click the ID of your instance.

    5. In the Configuration Information section of the Basic information page, find the Version parameter. The value of this parameter indicates the current version of your instance.

  • Run the select version() command.

    You can connect to a database in your PolarDB-X instance, and then run the select version() command to view the current version of the instance. The following example shows the output of the command:

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

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

Update the version of an instance

You can update the version of your PolarDB-X instance to the latest version in the console. After you update the version of your instance, you can use the latest features of PolarDB-X.

Warning
  • After you update the version of an PolarDB-X instance, the primary instance and the read-only instances that are associated with the primary instance are all updated to the latest version.

  • During the update process, transient connections occur and a few errors are reported. We recommend that you perform the update during off-peak hours.

Procedure

  1. Log on to the PolarDB for Xscale console.

  2. In the top navigation bar, select the region in which your instance resides.

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

  4. On the tab that appears, click the ID of your instance.

  5. In the Configuration Information section of the Basic Information page, click Update Kernel version.

    • Enterprise Edition

      In the Update Kernel version dialog box, you can select the latest version or a recommended version to which you want to update your instance.

    • Standard Edition

      After the update task starts, you can click the 2 icon in the upper-right corner to check the progress of the update task.