当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
How to understand the difference between BIO, NIO, and AIO
LeetCode Algorithm 1721. 交换链表中的节点
LiveNVR操作日志页面快速筛选上级国标平台的调用记录直播观看录像回看等操作
【Redis】Redis入门教程(介绍 下载安装 Jedis 图形化界面)
Excel draws statistical graphs
Property animation QPropertyAnimation
序列化技术ProtoBuf
C语言空白符、空格符 与转义字符题点总结
Behind iFLYTEK's translation machine stealing the spotlight, cross-language communication has entered a new era
ESP8266 Tutorial 1 - Introduction to ESP8266 Hardware Platform
【物联网架构】最适合物联网的开源数据库
js猜拳小游戏源码
哈希表,哈希桶的实现
关于编程本质那些事
"Guangzhou highway engineering measures for the supervision and administration of production safety, and revised from six aspects
dedecms支持Word内容一键上传
dedecms supports one-click upload of Word content
解决ASP.NET Core在Task中使用IServiceProvider的问题
态势丨黑客侵扰加剧,靶场为网络安全架设“防御盾”
在兄弟连战狼班参加PHP培训做行业领先人才