How to export data from Amazon DynamoDB into MySQL server(如何将数据从 Amazon DynamoDB 导出到 MySQL 服务器)
问题描述
我没有处理 Amazon AWS DynamoDB 等 nosql 数据库的经验.
I have no experience dealing with nosql databases such as Amazon AWS DynamoDB.
我有一些数据存储在 Amazon AWS DynamoDB 中.
I have some data stored in Amazon AWS DynamoDB.
是否可以将数据从 DynamoDB 导出到 MySQL 服务器?如果是这样,如何去实现呢?
Is it possible to export data from DynamoDB to MySQL Server ? If so, how to go about accomplishing that ?
谢谢,
推荐答案
我会提取 CSV 格式的数据.这个 "DynamoDBtoCSV" 工具看起来很有前途.然后您可以使用 将此 CSV 文件导入您的 MySQL 数据库加载数据文件.
I would extract the data in CSV format. This "DynamoDBtoCSV" tool seems promising. Then you can import this CSV file into your MySQL database with LOAD DATA INFILE.
缺点是您 1. 需要先创建接收结构,然后 2. 对每个表重复该过程.但应该不会太复杂 1. 从 DynamoDBtoCSV 输出的第一行生成相应的 CREATE TABLE 语句,2. 从批处理循环运行操作.
The drawback is that you 1. need to create the receiving structure first and 2. repeat the process for each table. But it shouldn't be too complicated to 1. generate a corresponding CREATE TABLE statement from the first line output by DynamoDBtoCSV, and 2. run the operation in a loop from a batch.
现在我问自己,MySQL 是否是您作为目标数据库的最佳选择.MySQL 是关系数据库,而 DynamoDB 是 NoSQL(具有可变长度聚合、非标量字段值等).将此结构扁平化为关系模式可能不是一个好主意.
Now I am asking myself if MySQL is your best call as a target database. MySQL is a relational database, while DynamoDB is NoSQL (with variable length aggregates, non-scalar field values, and so on). Flatenning this structure into a relational schema may not be such a good idea.
这篇关于如何将数据从 Amazon DynamoDB 导出到 MySQL 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将数据从 Amazon DynamoDB 导出到 MySQL 服务器
基础教程推荐
- 是否可以执行按位分组功能? 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 无法解决整理冲突 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
