Connecting to a DB Instance¶
You can connect a DB instance over a private or a public network.
Connect Through | Connection Address | Scenarios | Description |
---|---|---|---|
Private network | Private IP address | The system provides a private IP address by default. When your applications are deployed on an ECS that is in the same region and VPC as the GaussDB(for MySQL) DB instance, you are advised to connect to the DB instance through the ECS over a private IP address. |
|
Public network | EIP | If you cannot access the GaussDB(for MySQL) DB instance over a private IP address, bind an EIP to the DB instance and connect it to an ECS (or a public network host) over the EIP. |
|
Note
VPC: indicates the Virtual Private Cloud.
ECS: indicates the Elastic Cloud Server.
If the ECS is in the same VPC as the GaussDB(for MySQL) DB instance, you do not need to apply for an EIP.