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
Help Center/ TaurusDB/ User Guide/ Data Migration/ Migrating Data to TaurusDB Using the Export and Import Functions of DAS

Migrating Data to TaurusDB Using the Export and Import Functions of DAS

Updated on 2025-02-12 GMT+08:00

Scenarios

Data Admin Service (DAS) is a one-stop management platform that allows you to manage Huawei Cloud databases on a web console. It offers database development, O&M, and intelligent diagnosis, making it easy to use and maintain databases.

During data backup or migration, Data Admin Service (DAS) can help you export data to a local PC or OBS bucket, and import the data to the target data table. DAS allows you to export an entire database, some data tables, or SQL result sets.

Constraints

  • Only one file that is no larger than 1 GB can be imported at a time.
  • Only data files in .sql, .csv, or .xlsx format can be imported.
  • If data files are exported as a .zip package, they cannot be directly imported. You need to extract the files first.
  • Binary fields such as BINARY, VARBINARY, TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB cannot be imported.
  • Data cannot be exported from or imported to cross-region OBS buckets.

Exporting Data

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > TaurusDB.
  4. On the Instances page, locate an instance and click Log In in the Operation column.
  5. On the displayed DAS login page, enter the username and password and click Log In.
  6. On the top menu bar, choose Import and Export > Export.

  7. Export an entire database, some data tables, or SQL result sets.
  8. Export an entire database.

    Method 1: Use the quick export function.

    1. Click Quick Export and select the database to be exported.

    2. In the displayed dialog box, select a storage path and click OK.
      NOTE:
      • DAS does not store any data. The exported data files are stored in the OBS bucket that you have created.
      • Creating an OBS bucket is free, but you will be billed for storing data in the bucket.

    Method 2: Create an export task.

    1. Click Create Task > Export Database.
    2. In the displayed dialog box, configure task information.

      Table 1 Parameter description

      Category

      Parameter

      Description

      Basic Information

      Database

      Select the database to be exported and select Export all tables.

      • You can also select Export from standby database as required. If this option is selected, 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.
      • Databases are classified into user databases and system databases. System databases 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.

      Allowed Rows

      Select the maximum number of rows in a single table.

      File Type

      Select SQL, CSV, or EXCEL.

      Object to Export

      Select Data, Structure, or Data and structure.

      Charset

      Select UTF8 or GBK.

      Storage

      Select an OBS bucket for storing data files.

      Options

      • Combine INSERT statements.

        If you select this option, INSERT statements will be combined into files, with each file no greater than 5 MB.

      • Generate a file for each table.

        If you do not select this option, all data files will be exported as a .zip package, which cannot be directly imported. You need to extract the files first.

        If you select this option, the data file (in .sql, .csv, or .xlsx format) of each table will be exported and can be directly imported again.

      Remarks

      -

      Advanced Settings

      You can configure advanced options as required.

    3. Click OK.

  9. Export some data tables.

    1. Click Create Task > Export Database.
    2. In the displayed dialog box, configure task information.

      Table 2 Parameter description

      Category

      Parameter

      Description

      Basic Information

      Database

      Select the database to be exported and select the tables to be exported in the Tables area on the right.

      You can also select Export from standby database as required. If this option is selected, 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.

      Allowed Rows

      Select the maximum number of rows in a single table.

      File Type

      Select SQL, CSV, or EXCEL.

      Object to Export

      Select Data, Structure, or Data and structure.

      Charset

      Select UTF8 or GBK.

      Storage

      Select an OBS bucket for storing data files.

      Options

      • Combine INSERT statements.

        If you select this option, INSERT statements will be combined into files, with each file no greater than 5 MB.

      • Generate a file for each table.

        If you do not select this option, all data files will be exported as a .zip package, which cannot be directly imported. You need to extract the files first.

        If you select this option, the data file (in .sql, .csv, or .xlsx format) of each table will be exported and can be directly imported again.

      Remarks

      -

      Advanced Settings

      You can configure advanced options as required.

    3. Click OK.

  10. Export SQL result sets.

    1. Click Create Task > Export SQL Result.
    2. In the displayed dialog box, configure task information.

      Table 3 Parameter description

      Category

      Parameter

      Description

      Basic Information

      Database

      Select the database to be exported.

      You can also select Export from standby database as required. If this option is selected, 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.

      Allowed Rows

      Select the maximum number of rows in a single table.

      File Type

      Select SQL-Insert, CSV, or EXCEL.

      Charset

      Select UTF8 or GBK.

      Storage

      Select an OBS bucket for storing data files.

      Options

      • Combine INSERT statements.

        If you select this option, INSERT statements will be combined into files, with each file no greater than 5 MB.

      • Generate one file for each result.

        If you do not select this option, all data files will be exported as a .zip package, which cannot be directly imported. You need to extract the files first.

        If you select this option, the data file (in .sql, .csv, or .xlsx format) of each result set will be exported and can be directly imported again.

      SQL to Execute

      Enter an SQL statement.

      To export multiple SQL result sets at a time, enter multiple SQL statements, with each on a separate line and ending with a semicolon (;). After the export task is complete, SQL files are generated. One SQL statement corresponds to one file.

      Remarks

      -

      Advanced Settings

      You can configure advanced options as required.

    3. Click OK.

Importing Data

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page, choose Databases > TaurusDB.
  4. On the Instances page, locate an instance and click Log In in the Operation column.
  5. On the displayed DAS login page, enter the username and password and click Log In.
  6. On the top menu bar, choose Import and Export > Import.
  7. Click Create Task.
  8. In the displayed dialog box, configure task information.

    Table 4 Parameter description

    Parameter

    Description

    Import Type

    Set this parameter based on the type of an exported file. Currently, only SQL and CVS files are supported.

    File Source

    Import a file from your local PC or an OBS bucket.

    • Upload file

      If you select Upload file for File Source, you need to set Attachment Storage and upload the required file.

      To keep your data secure, provide your own OBS bucket to store the attachments you upload. In this way, DAS automatically connects to your OBS bucket for in-memory reading.

      Creating an OBS bucket is free, but you will be billed for storing data in the bucket.

    • Choose from OBS

      If you select Choose from OBS for File Source, you need to select a file from the bucket.

      The file uploaded from an OBS bucket will not be deleted upon an import success.

    Database

    Select the destination database.

    Charset

    Select UTF8, GBK, or Auto Detect.

    Options

    • Ignore errors, skip the step when the SQL statement fails to be executed.

      If you select this option, the system will skip any errors detected when SQL statements are being executed.

    • Delete the uploaded file upon an import success.

      If you select this option, the file you uploaded will be automatically deleted from the OBS bucket after being imported to the destination database. This option is only available to the files uploaded from your local PC.

    Remarks

    -

  9. Click Create.
  10. In the displayed dialog box, confirm the information and click OK.

  11. After the data is imported successfully, log in to the destination database to query the imported data.

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