Changing the Database Port
Scenarios
This section describes how to change the database port of a primary DB instance or a read replica. For primary/standby DB instances, changing the database port of the primary DB instance will cause the database port of the standby DB instance to also be changed accordingly.
Constraints
You cannot perform the following operations when the database port of a DB instance is being changed:
- Bind an EIP to the DB instance.
- Delete the DB instance.
- Create a backup for the DB instance.
- Restore from backup data or from a specific point in time to the original DB instance.
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 Relational Database Service. The RDS console is displayed.
- On the Instance Management page, click the target DB instance or click first and then click the target read replica.
- In the Connection Information area on the Basic Information page, click in the Database Port field.
You can also choose Connection Management in the navigation pane on the left. In the Connection Information pane on the Public Connection or Private Connection page, click in the Database Port field.
The MySQL database port ranges from 2100 to 9500.
- To submit the change, click .
- In the dialog box, click Yes.
- If you change the database port of the primary DB instance, that of the standby DB instance will also be changed and both DB instances will be rebooted.
- If you change the database port of a read replica, the change will not affect other DB instances. Only the read replica will be rebooted.
- This process takes 1-5 minutes.
- In the dialog box, click No to cancel the modification.
- In the dialog box, click Yes.
- To cancel the change, click .
- To submit the change, click .
- View the result of the change on the Basic Information page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot