Relational Database ServiceRelational Database Service

Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Cloud Certificate Manager
Anti-DDoS Service
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Cloud Communications
Message & SMS
Cloud Ecosystem
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
Intelligent EdgeFabric
SDK Developer Guide
API Request Signing Guide
Koo Command Line Interface
Updated at: May 07, 2022 GMT+08:00

Connecting to a DB Instance

An RDS DB instance can be connected through a private network, the Data Admin Service (DAS) service, or a public network.

Table 1 RDS connection methods

Connect Through

IP Address




No IP address is required. You can log in to the DAS console and use RDS directly.

Data Admin Service (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 working efficiency and data security. The permissions required for connecting to DB instances through DAS are enabled by default.

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

Private network

Floating IP

RDS provides a floating IP address by default.

When your applications are deployed on an ECS that is in the same region and VPC as RDS, you are advised to use a floating IP address to connect to the RDS DB instance through the ECS.

  • Secure and excellent performance
  • Recommended

Public network


If you cannot access an RDS DB instance through a floating IP address, bind an EIP to the DB instance and connect the DB instance to the ECS through the EIP.

  • A relatively lower level of security compared to other connection methods
  • To achieve a higher transmission rate and security level, you are advised to migrate your applications to an ECS that is in the same VPC as your RDS DB instance and use a floating IP address to access the DB instance.
  • You need to purchase an EIP. For details, see EIP billing details.
  • VPC: indicates the Virtual Private Cloud.
  • ECS: indicates the Elastic Cloud Server.
  • You can log in to DB instances using the Data Admin Service (DAS) service or other database clients.
  • If the ECS is in the same VPC as the RDS DB instance, you do not need to apply for an EIP.

Figure 1 illustrates the connection over a private network or a public network.

Figure 1 DB instance connection

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel