To connect to an ApsaraDB MyBase 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 MyBase for MySQL instance.

View the internal and public endpoints and port numbers

  1. Log on to the ApsaraDB MyBase console.
  2. In the upper-left corner of the page, select a region.
  3. In the left-side navigation pane, choose Instances > MySQL.
  4. Find the instance that you want to manage and click Details in the Actions column. Use one of the following methods to view the internal and public endpoints and port numbers.
    • In the Basic Information section of the Basic Information page, click See Detail next to Network Type. In the panel that appears, view the internal and public endpoints and port numbers of the instance. View the endpoints 01
      Note This method is supported only for ApsaraDB MyBase for MySQL High-availability Edition instances.
    • In the left-side navigation pane, click Database Connection. On the Database Connection page, view the internal and public endpoints and port numbers of the instance. View the endpoints 02
    Note The public endpoint of an instance is displayed only after you apply for a public endpoint for the instance. For more information about how to apply for a public endpoint, see Apply for or release a public endpoint.

Change the internal and public endpoints and port numbers

  1. Log on to the ApsaraDB MyBase console.
  2. In the upper-left corner of the page, select a region.
  3. In the left-side navigation pane, choose Instances > MySQL.
  4. Find the instance that you want to manage and click Details in the Actions column. In the left-side navigation pane, click Database Connection.
  5. On the Database Connection page, click Change Endpoint.
  6. 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 endpoint can contain lowercase letters, digits, and hyphens (-). It must start with a lowercase letter.
    • The endpoint must be 8 to 64 characters in length.