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
Situation Awareness
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

Exporting Data

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

DAS allows you to export a large amount of data at a time to facilitate data query or to back up data for migration. This section describes how to export data.

DAS allows you to export an entire database, some data tables, or result sets of SQL statements.

Usage Notes

  • If you do not select Generate a file for each table when exporting data, the exported data file is in .zip format. Data files in this format cannot be directly imported. You need to decompress the file before importing it again.
  • If Generate a file for each table is selected during data export, the exported data file is in .sql or .csv format. In this case, the exported data file can be directly imported again.
  • If the Exporting a Database function is used to export over 10,000 instance tables, an error message will be displayed indicating that the number of tables is too large and data cannot be exported. In this case, use the Exporting SQL Results function instead.
  • Only OBS buckets of the current IAM account can be exported.

Prerequisites

You have created a user database on the DAS console. For details, see Creating a Database.

Exporting a Database

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Import and Export > Export.
  7. In the upper left corner of the page, click Create Task and choose Export Database.

    Figure 1 Creating a task for exporting a database

  8. In the displayed dialog box, configure basic information and advanced settings as required.

    Figure 2 Creating a task for exporting a database
    • If you select Export all tables, data in an entire database or in specific tables will be exported.
    • Databases are classified into user databases and system databases. System database cannot be exported. If system database data is required, deploy system database services in a user database, so that you can export the system database data from the user database.
    • DAS connects to your standby database to export data. This prevents the primary database from being affected by data export. However, if the standby database has a high replication delay, the exported data may not be the latest.
    • DAS does not store any user data. The exported data files are stored in the OBS bucket that you have created. You can specify the storage path. You can click Bucket ACL Info in the Create Task dialog box to check whether a public OBS bucket is selected.
    • Creating OBS buckets is free of charge, but saving files will incur certain costs.

  9. After settings are complete, click OK.
  10. In the task list, locate the created task and view the task ID, type, status, and progress.
  11. Click Details in the Operation column to view task details.

    Figure 3 Task list

Exporting SQL Results

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Import and Export > Export.
  7. In the upper left corner of the page, click Create Task and choose Export SQL Result.

    Figure 4 Creating a task for exporting SQL results

  8. In the displayed dialog box, configure basic information and advanced settings as required.

    Figure 5 Creating a task for exporting SQL results
    • In a SQL result export task, the executed SQL statements cannot exceed 5 MB.
    • To export multiple SQL result sets at a time, enter SQL statements in the SQL text box. Enter each SQL statement on a separate line and add a semicolon (;) at the end. After the export task is complete, SQL files are generated. One SQL statement corresponds to one file.
    • DAS does not store any user data. The exported data files are stored in the OBS bucket that you have created.
    • You can click Bucket ACL Info in the Create Task dialog box to check whether a public OBS bucket is selected.
    • Creating OBS buckets is free of charge, but saving files will incur certain costs.

  9. After settings are complete, click OK.
  10. In the task list, locate the created task and view the task ID, type, status, and progress.
  11. Click Details in the Operation column to view task details.

    Figure 6 Task list

Downloading Data Files

Data exported using the data export function is stored in the OBS bucket you created. You can download exported data files in any of the following ways:
  • Download on the DAS Console.
  • Download on the OBS management console.

Quick Export (Not Promoted)

  1. Log in to the Huawei Cloud console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose Import and Export > Export.
  7. In the upper left corner of the page, click Quick Export and select the database that you want to export data from.

    Figure 7 Quick export
    NOTE:

    A maximum of 200,000 rows can be quickly exported from a single table. To export more data, choose Create Task > Export Database.

  8. On the Quick Export page, select a storage path and click OK.

    Figure 8 Quick export

  9. In the task list, view the export task you created.

    Figure 9 Task list
    In the row that contains the export task, you can click Details in the Operation column to view execution details of the task and information about exported tables.
    Figure 10 Task details

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback