All Products
Search
Document Center

ApsaraDB RDS:How do I connect to an ApsaraDB RDS instance from an external server?

Last Updated:Dec 11, 2023

After you apply for a public endpoint for your ApsaraDB RDS instance, you can connect to the RDS instance by using the public endpoint. This topic describes how to connect to an RDS instance from an external server by using the public endpoint.

Description

Note
  • You are not charged for the application for a public endpoint and the Internet traffic that is generated after you use the public endpoint to connect to your RDS instance. For more information, see Billable items.

  • To improve the access speed, connection stability, and security, we recommend that you use an internal endpoint to connect an Elastic Compute Service (ECS) instance to an RDS instance. For more information, see How do I connect to an ApsaraDB RDS instance?

  1. Apply for a public endpoint for an RDS instance. For more information, see Apply for or release a public endpoint.

    Note

    If a public endpoint is applied for your RDS instance, skip this step. In this case, you need to obtain the public endpoint of the RDS instance. For more information, see View and manage instance endpoints and ports.

  2. Use the public endpoint to connect to the RDS instance. For more information, see Use a client or the CLI to connect to an ApsaraDB RDS for MySQL instance.

Application scope

  • All RDS instances