To connect to an ApsaraDB RDS for MariaDB instance, you need the endpoint and port number. This page shows you how to find those values on the Database Connection page and how to change them.
Endpoint types
ApsaraDB RDS for MariaDB provides two endpoint types. Both endpoint types are suitable for all connection scenarios.
| Endpoint type | When to use |
|---|---|
| Internal endpoint | Connect an Elastic Compute Service (ECS) instance to an RDS instance over an internal network when both are in the same virtual private cloud (VPC). Provides low latency and high stability. |
| Public endpoint | Connect to an RDS instance over the Internet — for example, from a local machine or an application outside the VPC. |
View or change an endpoint and port number
Go to the Instances page. In the top navigation bar, select the region where the RDS instance resides. Find the instance and click its ID.
In the left-side navigation pane, click Database Connection. The Database Connection page shows the current internal and public endpoints and port numbers.
To change an endpoint or port number, click Modify Endpoint.
In the dialog box, select a connection type, enter a new endpoint prefix, specify a port number, and then click OK. The prefix must meet the following requirements: The port number must be in the range of 1000 to 65534.
Requirement Details Allowed characters Lowercase letters, digits, and hyphens (-) Start character Lowercase letter End character Lowercase letter or digit Minimum prefix length 8 characters Maximum total endpoint length 63 characters (prefix + suffix combined)
After changing an endpoint or port number, update the connection settings in your application. If you do not update them, your application cannot connect to the RDS instance.
FAQ
Do I need to restart the RDS instance when I change the endpoint or port number?
No. Changing the endpoint or port number does not require an instance restart.
After I change or release an endpoint, can another RDS instance use it?
Yes. Released endpoints become available for other RDS instances.