Updated on 2025-07-11 GMT+08:00

Changing a Database Port

Scenarios

You can change the database port of a DB instance. The change will be applied to the ports of the primary node and read replicas.

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 Database > TaurusDB.
  4. On the Instances page, click the instance name to go to the Basic Information page.
  5. In the Network Information area, click in the Database Port field.

    The database port of a TaurusDB 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.
    • To submit the change, click .
      • In the displayed dialog box, click Yes.
        1. 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.
        2. This process takes about 1–5 minutes.
    • To cancel the change, click .

  6. View the results on the Basic Information page.