forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
9.8 KiB
9.8 KiB
Importing Data
This section describes how to import data from your local PC or an OBS bucket for data backup and migration.
Usage Notes
- Import data into a table for backup or migration. If you import a CSV or SQL file, the file must have the same data type as the target table.
- Only one file that is no larger than 1 GB can be imported at a time.
- Only data files in the CSV or SQL format can be imported. If the number of MySQL 8.0 instance tables exceeds 100,000 (more than 10,000 in MySQL 5.7 and 5.6), the CSV format cannot be used.
- Binary fields such as BINARY, VARBINARY, TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB are not supported.
- The size of a single SQL statement to be imported must be less than 100 MB.
- If a SQL file containing binary data is exported using the mysqldump tool, the file cannot be imported.
- Only OBS buckets of the current IAM account can be imported.
Procedure
- Log in to the OTC console.
- Click
in the upper left corner and select a region and project. - Click
in the upper left corner, and under Databases, click Data Admin Service. - In the navigation pane on the left, choose Development Tool.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose Import and Export > Import.
- Click Create Task.
- After setting import parameters, click Create.
Confirm the information again before you click OK because original data may be overwritten after data import.
- On the displayed page, view import progress in the task list.
Click Details in the Operation column to view task details.
Parent topic: Data Import and Export