Export data from DMS to SQL, CSV, or Excel

更新时间:
复制 MD 格式

This topic describes how to use DMS to export RDS data to an SQL script, CSV, or Excel file.

Check source data

In DMS, verify that Chinese characters display correctly in the query results, as shown in the following figure.检查源数据

View the character set of a table

Run the following command to show a table's CREATE TABLE statement:

show create table <table_name>;

查看表的字符集

Create an export task

  1. In DMS, choose Database Development > Data Export > Database Export.

  2. Select Database Export.

  3. Select the tables to export, configure the file type, character set, and other settings, and then click Submit.设置导出任务

FAQ

When I use an SQL script exported from DMS to restore data to a self-managed instance, why are only table structures restored, but not the data?

When you export data from DMS, you must select Export content for the Data & Structure option. Before you restore data to a self-managed instance, you must create the required database on the instance and then import the SQL script.