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.
- Log on to the PolarDB-X console.
- In the top menu bar, select the region in which instance that you want to view is deployed.
- On the Instance List page, click the PolarDB-X 2.0 tab.
- On the page that appears, click the ID of the instance that you want to view.
- In the Configuration information section, you can view the version of your instance in the The current version field.
- 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.
- In the preceding output,
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.
- Log on to the PolarDB-X console.
- In the top menu bar, select the region in which the instance that you want to update is deployed.
- On the Instance List page, click the PolarDB-X 2.0 tab.
- On the page that appears, click the ID of the instance that you want to update.
- In the Configuration information section of the Basic information page, click Upgrade to the latest version. Note After the update task starts, you can click the
icon in the upper-right corner to check the progress of the update task.