Connecting to a DB Instance

GaussDB(openGauss) DB instances can be connected over a private network, a public network, or Data Admin Service (DAS).

Table 1 GaussDB(openGauss) DB instance connection modes

Connect Through

IP Address

Scenarios

Description

DAS

Not required

DAS enables you to manage databases on a web-based console. It supports SQL execution, advanced database management, and intelligent O&M, simplifying database management and improving both efficiency and data security. The permissions required for connecting to a GaussDB(openGauss) DB instance through DAS are enabled by default.

  • Easy to use, secure, advanced, and intelligent

  • Recommended

Private network

Private IP address

A private IP address is provided by default.

When your applications are deployed on an ECS that is in the same region and VPC as your GaussDB(openGauss) DB instance, you are advised to connect the ECS to the DB instance over a private IP address.

  • Secure and excellent performance

  • If DAS is not used, you are advised to use the private network connection.

Public network

EIP

If you cannot access a GaussDB(openGauss) DB instance over a private IP address, bind an EIP to the DB instance and connect it to the ECS over the EIP.

  • A relatively lower level of security compared to other connection methods.

  • To achieve a higher data transmission rate and security level, you are advised to migrate your applications to an ECS that is in the same subnet as your GaussDB(openGauss) DB instance and use a private IP address to access the DB instance.