ApsaraDB RDS provides an internal endpoint by default. To access your instance over the Internet, request a public endpoint.
Public endpoint management for other database engines:
Internal and public endpoints
Address Type | Description |
Internal endpoint |
|
Public endpoint |
Important
|
Billing
Public endpoints are free. Internet traffic (inbound and outbound) through the public endpoint is also free of charge.
Precautions
If you release and re-request a public endpoint, the new endpoint differs from the previous one. Update your application configuration immediately.
If SSL encryption is enabled for the public endpoint, disable SSL before releasing the endpoint. Disabling SSL restarts the instance. Perform this during off-peak hours.
Request or release a public endpoint
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the navigation pane on the left, click Database Connection.
NoteFor Cluster Edition instances, you can also manage the public endpoint from the topology graph on the Basic Information page.
Request or release the endpoint:
To request a public endpoint, click Apply for Public Endpoint.
To release a public endpoint, click Disable Public Endpoint.
In the dialog box that appears, click OK.
WarningAdding
0.0.0.0/0to the whitelist poses a security risk. After testing, configure the whitelist again.To connect over the Internet, run the
curl ipinfo.io/ipcommand to obtain your client's public IP address, then add the IP address to the RDS whitelist.
FAQ
Related operations
You can request a public endpoint for an instance by calling the AllocateInstancePublicConnection API operation.
You can release the public endpoint of an instance by calling the ReleaseInstancePublicConnection API operation.
You can customize the prefix or port of the internal and public endpoints for your RDS for MySQL instance.
To connect to your RDS for MySQL instance over a public endpoint, see Connect to an ApsaraDB RDS for MySQL instance.