Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ GaussDB(DWS)/ Tool Guide/ Data Studio/ Connection Management

Connection Management

Updated on 2025-01-09 GMT+08:00

When Data Studio is started, the New Database Connection dialog box is displayed by default. To perform database operations, Data Studio must be connected to at least one database.

Enter the connection parameters to create a database connection between Data Studio and the database server. Hover the mouse cursor over the connection name to view the database information.

Adding a Connection

  1. Choose File > New Connection from the main menu, or click new connection icon on the toolbar. The New Database Connection dialog box is displayed.

  2. The table on the left lists the details of the existing connection profile(s) used to connect to the database along with the server information.

    You can populate connection parameters, such as Connection Name, Host, and Host Port, by double-clicking the connection name.

    NOTE:

    If the password or key for any of the existing connections is damaged, you need to enter the password for whichever connection you use.

  3. Configure the following parameters to create a database connection.

    Table 1 Database connection information

    Field

    Description

    Example

    Database Type

    Database type

    -

    Name

    Connection name

    My_Connection_DB

    Host

    Specifies the host IP address (IPv4) or database domain name.

    NOTE:
    • If domain name length is greater than 25 characters, the complete domain name will not be displayed.

      For example, test1(db.dws…com:25xxx) cannot be displayed completely.

    • Once the connection is created, hover the cursor over the connection name to see the server IP and version.
    • The value of this field will be identified as an IP address if it contains only digits with three periods (.). Otherwise, it will be identified as a domain name.
    • A domain name must meet the following requirements:
      • Start with a letter.
      • Contains only letters, digits, hyphens (-), and periods (.) and cannot contain any other special character.
      • Cannot contain spaces or tabs.
      • Contains 1 to 253 characters and a maximum of 63 characters between periods.

    db.dws.mycloud.com

    10.xx.xx.xx

    Host Port

    Provide the port address.

    8000

    Databases

    Specifies the database name.

    gaussdb

    Username

    Provide the username to connect to the selected database.

    -

    Password

    Specifies the password for connecting to the selected database. The password is masked.

    -

    Save Password

    • Current Session Only: The password is saved only for the current session.
    • Do Not Save: The password is not saved.

    -

    NOTE:
    • Click Clear to clear all fields in the New Database Connection dialog box.
    • Press Ctrl+V to paste data in the New Database Connection dialog box. Right-click options are not available in the dialog boxes of Data Studio.

  4. Select the Enable SSL option and click the SSL tab. For details, see Configuring SSL Connection.

    Figure 1 Configuring SSL parameters

  5. Perform the following steps to set Fast Load Options:

    Click the Advanced tab.
    Figure 2 Configuring fast load options
    • Enter the schema names separated by commas in the Include field to load these schemas preferentially.
    • Enter the schema names separated by commas in the Exclude field to avoid loading these schemas preferentially.
    • Select either of the following options for Load Objects:
      • All Objects: Loads all objects.
      • Objects allowed as per user privilege: loads only objects that the user has permissions for accessing. For details about the minimum permissions for accessing objects listed in Object Browser, see Table 2.
      NOTE:

      The default value is Objects allowed as per user privilege.

    • Enter the number of database objects that can be loaded in Load Limit. The maximum number is 30,000.
      NOTE:
      • If the number of object types (such as tables and views) of the schema entered in Include is greater than the value of Load Limit, only the parent objects of the schema will be loaded. This indicates that child objects containing more than three parameters will not be loaded, such as columns, constraints, indexes, and functions.
      • Schema names provided in Include and Exclude are validated.
      • If you cannot access the schema specified in Include, an error message of the schema will be displayed during connection.
      • If you cannot access the schema specified in Exclude, the schema will not be loaded in Object Browser after the connection is created.

  6. Click OK.

    The status bar displays the status of the completed operation.

    When Data Studio is connecting to the database, the connection status is displayed as follows:

    Once the connection is created, all schemas will be displayed in the Object Browser pane.

    NOTE:
    • You can still log in to Data Studio even if the password has expired, but a message indicating that some operations may not be performed normally will be displayed. For details about how to change the configurations, see Table 1.
    • PostgreSQL schema names are not displayed in the Object Browser pane.

Renaming a Connection

  1. In the Object Browser pane, right-click the selected connection name and select Rename Connection.

    A Rename Connection dialog box is displayed, prompting you to enter the new connection name.

  2. Enter the new connection name. Click OK to rename the connection.

    The status bar displays the status of the completed operation.
    NOTE:

    The new connection name must be unique. Otherwise, the rename operation will fail.

Editing a Connection

  1. In the Object Browser pane, right-click the selected connection name and select Edit Connection. The Edit Connection dialog box is displayed.

    To edit an active connection, you need to disable the connection and then open the connection with the new properties. A warning message about connection resetting is displayed.

  2. Edit the connection parameters. For details, see Table 1.

    NOTE:

    The database type and name cannot be modified.

  3. Click OK.

    NOTE:
    • You can click Clear to clear all fields in the Edit Database Connection dialog box.
    • If you click OK without modifying any connection parameters, a dialog box is displayed, indicating that the modification is not saved. After the connection parameters are modified, a dialog box is displayed.

  4. If SSL is not enabled, a Connection Security Alert dialog box is displayed. Click Continue to proceed with insecure connections or click Cancel to return to the Edit Connection dialog box to enable SSL.

    Do not show again option is used to hide the Connection Security Alert dialog box for subsequent connections.

    A dialog box is displayed asking users to confirm whether the database whose connection has been edited is deleted.

  5. Click Yes to proceed to updating the connection information and reconnecting the connection with the updated parameters.

    The status bar displays the status of the completed operation.

Removing a Connection

  1. Right-click the selected connection name and select Remove Connection.

    A confirmation dialog box is displayed.

  2. Click Yes to remove the server connection.

    The status bar displays the status of the completed operation.

    This operation will remove the connection from the Object Browser. Any unsaved data will be lost.

Refreshing Connection Data

  1. In the Object Browser pane, right-click the selected connection name and select Refresh or press F5 to update the connection with the latest content on the server.

    The status bar displays the status of the completed operation.

  • The time taken to refresh a database depends on the number of objects in the database. Therefore, you are advised to perform this operation during off-peak hours in a large-scale database.
  • If you refresh the entire database or connection, all child objects of schemas in search_path, as well as the schemas already expanded by the user, will be loaded again.
  • If you reconnect to the database, only schema objects saved under search_path will be loaded. Objects that have been expanded will not be loaded.
  • A database and multiple objects under it cannot be refreshed simultaneously.

Viewing Connection Properties

  1. Right-click the selected connection and select Properties.

    The status bar displays the status of the completed operation.

    Properties of the selected connection are displayed.

    NOTE:

    If the property of a created connection is modified, then open the properties of the connection again to view the updated information.

Usamos cookies para aprimorar nosso site e sua experiência. Ao continuar a navegar em nosso site, você aceita nossa política de cookies. Saiba mais

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback