Relational Database ServiceRelational Database Service

Compute
Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Networking
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
Anti-DDoS
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
Compass
Cloud Certificate Manager
Anti-DDoS Service
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB NoSQL
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
ServiceStage
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
DevCloud
ProjectMan
CodeHub
CloudRelease
CloudPipeline
CloudBuild
CloudDeploy
Cloud Communications
Message & SMS
Cloud Ecosystem
Marketplace
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
enterprise-collaboration
Meeting
IoT
IoT
Intelligent EdgeFabric
DeveloperTools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Updated at: Apr 02, 2022 GMT+08:00

Connecting to a DB Instance Through pgAdmin

You can use the pgAdmin client to connect to an RDS DB instance.

The pgAdmin version must be 4 or later.

Preparations

  1. Prepare an ECS or a device that can access RDS DB instances.

    To connect to a DB instance through a floating IP address, you must:

    • Create and log in to an ECS. For details, see Purchasing an ECS and Logging In to an ECS.
    • Ensure that the ECS and DB instance must be in the same VPC.
    • Ensure that the ECS must be allowed by the security group to access RDS DB instances.
    To connect to a DB instance through an EIP, you must:
    1. Bind the EIP to the DB instance. For details, see Binding and Unbinding an EIP.
    2. Ensure that the local device can access the EIP that has been bound to the DB instance.
  2. Install the pgAdmin client on the prepared ECS or device.

Procedure

  1. Start pgAdmin.
  2. In the displayed login window, choose Servers > Create > Server.

    Figure 1 Creation

  3. On the General page, specify Name. On the Connection page, specify information about the DB instance to be connected. Then, click Save.

    Figure 2 General page

    Figure 3 Connection page

    Parameter description:

    • Host name/address: indicates the IP address of the DB instance you want to connect to. If you connect to a DB instance through a floating IP address, enter the floating IP address displayed in the Connection Information area on the Basic Information page of your DB instance. If you connect to a DB instance through an EIP, enter the EIP of your DB instance.
    • Port: indicates the database port. By default, the value is 5432.
    • User name: indicates the username. By default, the value is root.
    • Password: indicates the password of the target database username.

  4. In the login window, check that the connection information is correct. The target DB instance is successfully connected.

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