View and upgrade instance versions
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.
Log on to the PolarDB-X console.
In the upper-left corner of the page, select the region where the target instance is located.
On the Instances page, click the PolarDB-X 2.0 tab.
Find the target instance and click the instance ID.
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)NoteIn this example,
5.4.8-16079964is 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.
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
Log on to the PolarDB-X console.
In the upper-left corner of the page, select the region where the target instance is located.
On the Instances page, click the PolarDB-X 2.0 tab.
Find the target instance and click the instance ID.
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
icon in the upper-right corner of the page to view the progress of the upgrade task.