AnalyticDB for MySQL supports two network types: Internet and Virtual Private Cloud (VPC). To connect to a cluster from outside the Alibaba Cloud environment, apply for a public endpoint.
Network types
| Network type | When to use | Key characteristics |
|---|---|---|
| VPC | Default for most workloads. Recommended. | Isolated network environment. Supports route tables, CIDR blocks, and gateways. Connect your data center to the VPC using Express Connect circuits or VPNs. |
| Internet | Access from devices outside Alibaba Cloud, or across regions and network types. | Requires a public endpoint. Apply manually and release when no longer needed. Exposing your cluster to the Internet introduces security risks — configure an IP allowlist before connecting. |
Apply for a public endpoint
Prerequisites
Before you begin, ensure that you have:
-
An AnalyticDB for MySQL cluster on Data Warehouse Edition (V3.0)
-
Access to the AnalyticDB for MySQL console
Steps
-
Log on to the AnalyticDB for MySQL console.
-
In the upper-left corner, select the region where your cluster is deployed.
-
In the left-side navigation pane, click Clusters.
-
Click the Data Warehouse Edition (V3.0) tab.
-
Find the cluster and click its Cluster ID.
-
On the Cluster Information page, go to the Network Information section and click Apply for Endpoint.
-
In the confirmation dialog, click OK.
After the endpoint is assigned, add the IP address of any device that will connect to the cluster to an allowlist. For more information, see Configure a whitelist.
Release a public endpoint
-
Log on to the AnalyticDB for MySQL console.
-
In the upper-left corner, select the region where your cluster is deployed.
-
In the left-side navigation pane, click Clusters.
-
Click the Data Warehouse Edition (V3.0) tab.
-
Find the cluster and click its Cluster ID.
-
On the Cluster Information page, go to the Network Information section and click Release Endpoint.
-
In the confirmation dialog, click OK.
To confirm the endpoint is released, return to the Network Information section and verify that no public endpoint is listed.
FAQ
Why can't I connect to the cluster after applying for a public endpoint?
The public endpoint alone does not grant access. You must add the IP address of the connecting device to an allowlist. See Configure a whitelist.
Is a public endpoint required for connections within Alibaba Cloud?
No. Use a VPC connection for any workload running within Alibaba Cloud. A public endpoint is only needed when connecting from outside the Alibaba Cloud environment — for example, from a local machine or across different network types.