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-X console.
    2. In the top menu bar, select the region in which instance that you want to view is deployed.
    3. On the Instance List page, click the PolarDB-X 2.0 tab.
    4. On the page that appears, click the ID of the instance that you want to view.
    5. In the Configuration information section, you can view the version of your instance in the The current version field. 1
  • 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.

Upgrade 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 read-only instances that are associated with the instance are all updated to the latest version.
  • Do not perform other operations on an instance that is being updated. For example, do not create a database or create a read-only instance.
  • 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-X console.
  2. In the top menu bar, select the region in which the instance that you want to update is deployed.
  3. On the Instance List page, click the PolarDB-X 2.0 tab.
  4. On the page that appears, click the ID of the instance that you want to update.
  5. In the Configuration information section of the Basic information page, click Upgrade to the latest version. 1
    Note After the update task starts, you can click the 2 icon in the upper-right corner to check the progress of the update task.