当前位置:网站首页>MongoDB database notes
MongoDB database notes
2022-08-10 10:23:00 【extreme~】
- mongodb import json file:
mongoimport --db database name --collection collection name --file full path where the json file is located
eg: insert json data into roles in three-in-one database
mongoimport --db three-in-one --collection roles --file G:\three-in-one\roles.metadata.json
- mongodb import bson file:
mongorestore.exe -h 127.0.0.1:27017 -d database name directory where the bson file is located (excluding bson)
eg: Insert bson data into the three-in-one database (the full path of the bson data is G:\three-in-one\xxx.bson)
mongorestore.exe -h 127.0.0.1:27017 -d three-in-one G:\three-in-one
Refresh, you can see that the import has been successful.
边栏推荐
猜你喜欢
随机推荐
俄罗斯宣布临时禁止进口摩尔多瓦植物产品
database transaction
MySQL 执行查询流程
解决ASP.NET Core在Task中使用IServiceProvider的问题
ZZULIOJ 1116 Delete elements [delete]
LCD DRM驱动框架分析一
The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values
「数据架构」:主数据管理(MDM)对我的行业有什么帮助?
LiveGBS操作日志页面快速的筛选上级平台的调用记录直播观看录像回看等操作
2022.8.9-----leetcode.1413
WebView2 通过 PuppeteerSharp 实现爬取 王者 壁纸 (案例版)
关于json转换器缺失的问题,报错内容:No converter found for return value of type
阻塞队列与线程池原理
武功修炼:招式
高通 msm8953 LCD 休眠/唤醒 流程
dos环境下操作mysql
大连理工&鹏城&UAE提出用于伪装目标检测的混合尺度三重网络ZoomNet,性能SOTA!
gin-gonic/gin使用详解
Payment x Aggregation x Ledger Separation - The Way to Avoid Risk of "Erqing" on the Return Platform
VBA: Inputbox Function and Inputbox Method