You must use internal or public endpoints and ports to connect to an RDS instance. This topic describes how to view and change the internal and public endpoints and ports of an RDS instance.

View the internal and public endpoints and ports

  1. Log on to the ApsaraDB for RDS console.
  2. In the upper-left corner of the page, select the region where the target instance is located.Select a region
  3. Find the target RDS instance and click its ID. The Basic Information page appears.
  4. On the Basic Information page that appears, view the internal and public endpoints and their corresponding port numbers, as shown in the following figure.
    Note
    • You must configure the whitelist of the instance to display the endpoint information.
    • Only after you have applied for a public endpoint, you can view this information on the Basic Information page.

Modify the internal and public endpoints and ports

  1. Log on to the ApsaraDB for RDS console.
  2. In the upper-left corner of the page, select the region where the instance is located.Select a region
  3. Find the target RDS instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. In the upper-right corner of the Database Connection section, click Change Endpoint.
  6. In the dialog box that appears, specify Connection Type, modify the endpoint and port, and click OK.
    Note
    • The prefix of the endpoint must be 8 to 64 characters in length and can contain letters, digits, and hyphens (-). It must start with a lowercase letter.
    • The port number must be within the range of 1000 to 5999.

FAQ

  • Do I need to change the endpoints and ports for my application after I change them for the RDS instance?

    Yes, if you do not change the endpoints and ports for your application, it fails to connect to the database.

  • Do the changes to endpoints and ports immediately take effect? Do I need to restart the instance?

    The changes immediately take effect. You do not need to restart the instance.

  • After I change or release an endpoint of one instance, can I use the endpoint for another instance?

    Yes, the original endpoint becomes available to other instances after you change or release it.