首页 > 解决方案 > How to import MongoDb collection data to MySQL?

问题描述

I want to import data from MongoDb to MySQL. For that i have exported the MongoDb collection as json and imported the same in MySQL. But when i did that the data have not imported properly. Is there any other method to do that? Here is the snap ngoattached

标签: mysqlmongodbmysql-workbench

解决方案


第 1 步:MongoDB API-> 导出数据:mongoexport --db test --collection traffic --out traffic.json 第 2 步:SQLizer API-> 启动文件转换 上传文件 监控转换进度 下载转换后的文件 第 3 步:SQL 文件到 SQL 数据库中 -> 现在剩下要做的就是将新的 SQL 文档真正导入/上传到数据库中。因为 SQLizer 具有预定义的 TABLE 和 INSERT 语句,所以这一步实际上是在等待您的报告导入/添加。

谢谢


推荐阅读