Help Center/ GaussDB/ User Guide/ Instance Modifications/ Changing the Database Port of a GaussDB Instance
Updated on 2024-11-11 GMT+08:00

Changing the Database Port of a GaussDB Instance

Scenarios

You can change the database port of your GaussDB instance.

Precautions

  • The database port can be changed only for instances of version V2.0-2.0 or later.
  • Changing the port of an instance will reboot all nodes of the instance, during which services will be intermittently interrupted.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB.
  4. On the Instances page, click the name of the target instance.
  5. In the Network Information area on the Basic Information page, click in the Database Port field.

    Figure 1 Changing the database port

    • To submit the change, click .
      • In the displayed dialog box, click Yes to submit the change.
      • In the displayed dialog box, click No to cancel the change.
    • To cancel the change, click .
    • The GaussDB port ranges from 1024 to 39989, but the following ports that are reserved for system use cannot be used: 2378 to 2380, 2400, 4999 to 5001, 5100, 5500, 5999 to 6001, 6009 to 6010, 6500, 8015, 8097, 8098, 8181, 9090, 9100, 9180, 9187, 9200, 12016, 12017, 20049, 20050, 21731, 21732, 32122 to 32126, and 39001.
    • The port cannot be a number in the range [Database port, Database port + 10].

  6. View the result of the change on the Basic Information page.