When you connect to an ApsaraDB RDS for MySQL instance, you must enter the internal or public endpoint and port number of the instance. This topic describes how to view and change the internal and public endpoints and port numbers of an ApsaraDB RDS for MySQL instance in the ApsaraDB RDS console.

View the internal and public endpoints and port numbers of an RDS instance in the new ApsaraDB RDS console

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the Basic Information section of the Basic Information page, click See Detail next to Network Type. In the pane that appears, view the internal and public endpoints and port numbers of the RDS instance.
    Note

View the internal and public endpoints and port numbers of an RDS instance in the original ApsaraDB RDS console

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the Basic Information section of the Basic Information page, view the internal and public endpoints and port numbers of the RDS instance.
    Note
    View the internal and public endpoints and port numbers

Change the internal or public endpoint and port number of an RDS instance

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Connection.
  3. Click Change Endpoint.
  4. In the dialog box that appears, select a connection type, enter the prefix of the new endpoint, specify the port number, and then click OK.
    Note
    • The prefix must start and end with a letter or a digit and can contain letters, digits, and hyphens (-).
    • The prefix must contain at least 8 characters, and the total length of the endpoint cannot exceed 63 characters. The total length includes the prefix and suffix of the endpoint.
    • The port number must be within the range of 1000 to 5999.

FAQ

  • After I change a specific endpoint or port number of my RDS instance, do I need to update the endpoint or port number information on my application?

    Yes, after you change a specific endpoint or port number of your RDS instance, you must update the endpoint or port number information on your application. Otherwise, your application cannot connect to your RDS instance.

  • After I change a specific endpoint or port number of my RDS instance, is the change immediately applied? Do I need to restart my RDS instance?

    After you change a specific endpoint or port number of your RDS instance, the change is immediately applied. You do not need to restart your RDS instance.

  • After I change or release a specific endpoint of my RDS instance, can I use the endpoint for another RDS instance?

    Yes, after you change or release a specific endpoint of your RDS instance, you can use the endpoint for another RDS instance.

  • Does a primary/secondary switchover trigger changes to the endpoints of my RDS instance?

    No, a primary/secondary switchover does not trigger changes to the endpoints of your RDS instance. However, the IP addresses that are associated with the endpoints change. Your application can still connect to your RDS instance by using the endpoints.

References

For more information about the endpoints that are used to connect to the dedicated proxy of an RDS instance, see Manage the dedicated proxy endpoints of an ApsaraDB RDS for MySQL instance.