View or change endpoints and ports

Updated at:

To connect to an ApsaraDB MyBase for MySQL instance, you need its internal or public endpoint and port number. This topic explains how to view and change these details.

View endpoints and ports

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select the target region.

  3. In the navigation pane on the left, choose Instances > MySQL.

  4. Find the target instance and click Details in the Actions column. You can find the internal and public endpoints and port numbers in either of the following locations:

    • In the Basic Information section, click See Detail.

      Note

      This method is supported only for ApsaraDB MyBase for MySQL High-availability Edition instances.

    • In the navigation pane on the left, click Database Connection to view the internal and public endpoints and port numbers.

    Note

    A public endpoint is displayed only after you request one for the instance. For instructions, see Request or release a public endpoint.

Change endpoints and ports

  1. Log on to the ApsaraDB for MyBase console.

  2. In the upper-left corner of the page, select the target region.

  3. In the navigation pane on the left, choose Instances > MySQL.

  4. Find the target instance and click Details in the Actions column. Then, in the navigation pane on the left, click Database Connection.

  5. On the Database Connection page, click Change Endpoint.

  6. In the dialog box that appears, select a connection type, enter an endpoint prefix, specify a port number, and click OK.

    Note
    • The endpoint prefix must start with a lowercase letter and can contain only lowercase letters, digits, and hyphens (-).

    • The endpoint prefix must be 8 to 64 characters long.