To connect to a PolarDB for MySQL cluster, enter an endpoint of the PolarDB for MySQL cluster. PolarDB for MySQL supports cluster endpoints and primary endpoints. For each type of endpoints, you can apply for an internal endpoint or a public endpoint to connect to the cluster. This topic describes how to modify or delete an endpoint in the PolarDB for MySQL console.
Modify an endpoint
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the URL section of the Basic Information page, view and modify the endpoint by using one of the following methods:
- Method 1
- In the upper-right corner of the URL section, click the icon to switch views.
- Find the endpoint that you want to modify and click Modify.
- Method 2
- Click Modify on the right of the cluster endpoint.
- In the Network Information section of the dialog box that appears, choose .
- Method 1
- In the dialog box that appears, modify the prefix of the Public or Private endpoint. Important
- The prefix of the endpoint must meet the following requirements:
- The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-).
- The prefix must start with a letter and end with a digit or a letter.
- If Secure Sockets Layer (SSL) is enabled for the endpoint, the cluster is restarted after you modify the endpoint.
- If SSL is enabled for the endpoint, the total length of the new endpoint cannot exceed 64 characters.
- The prefix of the endpoint must meet the following requirements:
- Click OK.
Delete an endpoint
Warning
- Before you delete an endpoint, make sure that your application is connected to the cluster through a new endpoint.
- The deleted endpoint cannot be restored. You can click Apply next to the required endpoint type in the console to apply for a new endpoint. For more information, see View or apply for an endpoint.
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the URL section of the Basic Information page, delete an endpoint by using one of the following methods:
- Method 1
- In the upper-right corner of the URL section, click the icon to switch views.
- Find the endpoint that you want to delete and click Release.
- Method 2
- Click Modify on the right of the cluster endpoint.
- In the Network Information section of the dialog box that appears, choose .
Note You can delete only Public endpoints. - Method 1
- Click OK.
Related API operations
API | Description |
DescribeDBClusterEndpoints | Queries the endpoint of a specified PolarDB cluster. |
CreateDBEndpointAddress | Creates a public endpoint for a specified PolarDB cluster. |
ModifyDBEndpointAddress | Modifies the default endpoint of a specified PolarDB cluster. |
DeleteDBEndpointAddress | Deletes a cluster endpoint of a specified PolarDB cluster. |