Importing Data
This section describes how to import data from your local PC or an OBS bucket for data backup and migration.
Precautions
- 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.
Procedure
- Log in to the DAS 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.
You can also click Go to Development Tool on the overview page.
- 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.
Figure 1 Creating an import 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot