Help Center> GaussDB> Getting Started> Connecting to a DB Instance

Connecting to a DB Instance

You can connect a DB instance over a private network, over a public network, or through the Data Admin Service (DAS) service.

Table 1 Connection methods

Connect Through

Connection Address

Scenarios

Description

DAS

Not required

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

  • Easy to use, secure, advanced, and intelligent
  • Recommended

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.

  • Secure and excellent performance
  • Recommended

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.

  • A relatively Low lower level of security compared to the other two connection modes.
  • 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 VPC as your GaussDB(for MySQL) DB instance and use a private IP address to access the DB instance.
  • VPC: indicates the Virtual Private Cloud.
  • ECS: indicates the Elastic Cloud Server.
  • You can log in to a DB instance using the DAS service or other database clients.
  • If the ECS is in the same VPC as the GaussDB(for MySQL) DB instance, you do not need to apply for an EIP.