Updated on 2024-11-06 GMT+08:00

Changing a Database Port

You can change the database port of a GaussDB(for MySQL) instance.

Constraints

  • The database port of a DB instance with database proxy enabled cannot be changed.
  • If there is an HTAP instance, the database port of the GaussDB(for MySQL) instance cannot be changed.
  • The change will be applied to the ports of the primary node and read replicas.
  • If you change the database port of a DB instance, the ports of the primary node and read replicas are changed accordingly and all of them are rebooted.
  • It takes about 1 to 5 minutes to change a database port.

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, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, click the instance name to go to the Basic Information page.
  5. In the Network Information area, click under Database Port.

    The database port of a GaussDB(for MySQL) instance ranges from 1025 to 65534, excluding 5342, 5343, 5344, 5345, 12017, 20000, 20201, 20202, 33060, 33062, and 33071, which are reserved for system use.

  6. Click . In the displayed dialog box, click Yes.