Help Center/ Document Database Service/ User Guide (Ally Region)/ Connection Management/ Changing a Database Port
Updated on 2026-01-12 GMT+08:00
Changing a Database Port
This section describes how to change a database port.
Precautions
- For security purposes, the database port cannot be modified when the instance is in any of the following statuses:
- Restarting
- Adding node
- Switching SSL
- Changing instance class
- Deleting node
- The storage space is being expanded.
- Abnormal
- For a cluster instance, the instance port is the port of the dds mongos node. The default port is 8635. You can change the port after the instance is created. The shard node port is 8637, and the config node port is 8636, which cannot be changed.
- For a replica set or single node instance, the default port is 8635. You can change the port after the instance is created.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click Service List. Under Database, click Document Database Service to go to the DDS console.
- On the Instances page, click the instance name.
- In the Network Information area on the Basic Information page, click
in the Database Port field to change the database port. In the navigation pane on the left, choose Connections and click
in the Database Port field in the Basic Information area to change the database port.
Available ports: 2100 to 9500, and 27017 to 27019
- To submit the change, click
. This process takes about 1 to 5 minutes. - To cancel the change, click
.
- To submit the change, click
- View the modification result.
Parent topic: Connection Management
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot