mysql - 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 attached
解决方案
第 1 步:MongoDB API-> 导出数据:mongoexport --db test --collection traffic --out traffic.json 第 2 步:SQLizer API-> 启动文件转换 上传文件 监控转换进度 下载转换后的文件 第 3 步:SQL 文件到 SQL 数据库中 -> 现在剩下要做的就是将新的 SQL 文档真正导入/上传到数据库中。因为 SQLizer 具有预定义的 TABLE 和 INSERT 语句,所以这一步实际上是在等待您的报告导入/添加。
谢谢
推荐阅读
- swift - SwiftUI - 使用 AngularGradient 或 LinearGradient 填充
- javascript - 我的图像滑块的脚本不起作用
- mongodb - 在mongoose的顶部获取所选id的记录
- ios - 防止按钮在 SwiftUI 中被禁用时淡出
- wordpress - 填充样式未显示
- jetbrains-ide - 打开文件夹对话框冻结(JetBrains 产品)
- javascript - 简单的 forEach 返回未定义,我移动了一个 console.log 并且它可以工作 - 为什么?
- r - 更新 R 和 Rstudio 后双击文件“*.R”时出错
- python - 使用 %d 获得浮点数的两位小数
- javascript - React Hook 不更新