Scenarios
You can change the database port of a GaussDB(for MySQL) instance. The change applies to the ports of the primary node and read replicas, and may affect services intermittently.
Constraints
Changing the database port of a DB instance will only affect access through its IP address. If a DB instance is accessed through a proxy instance, the database port of the proxy instance cannot be changed, which defaults to 3306.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click Service List. Under Databases, click GaussDB(for MySQL).
- On the Instances page, click the target DB instance to go to the Basic Information page.
- In the Network Information area, click
in the Database Port field.The
GaussDB(for MySQL) database port ranges from 1025 to 65534, excluding 5342, 5343, 5344, 5345, 12017, 20000, 20201, and 20202, which are occupied by the system and cannot be used.
- To submit the change, click
.- In the dialog box, click Yes.
- If you change the database port of a DB instance, the ports of the primary node and read replicas are also changed accordingly and all of them are rebooted.
- This process takes about 1–5 minutes.
- To cancel the change, click
.
- View the result of the change on the Basic Information page.