windows 下 mongodb6.0 导入导出json文件

1.运行cmd窗口,进入MongoDB安装路径下的bin文件下,输入以下命令导入数据文件

复制代码
mongoimport --host 127.0.0.1 --port 27017 --db <数据库名称,根据自个情况> -c <集合名称,自定义> --file <导入文件的路径名>

其中host为服务器地址,port为端口号,db为数据库名称,c为导入的集合名称,file为文件类型

2.运行cmd窗口,进入MongoDB安装路径下的bin文件下,输入以下命令导出数据文件

复制代码
mongoexport --host 127.0.0.1 --port 27017 --db <数据库名称,根据自个情况> -c <集合名称,自定义> --out <文件名,自定义>

其中host为服务器地址,port为端口号,db为导出的数据库名称,c为导出的集合名称,out为导出的文件名称

相关推荐
wtsolutions2 小时前
JSON to Excel Add-in - Seamless Integration Within Excel
json·excel
wtsolutions3 小时前
Getting Started with JSON to Excel Web App - Convert in Seconds
json·excel·web app
wtsolutions6 小时前
Using the JSON to Excel API - Programmatic Access for Developers
json·excel
wtsolutions9 小时前
Understanding JSON Formats - What JSON to Excel Supports
json·excel
wtsolutions10 小时前
Advanced Features - Unlocking the Power of JSON to Excel Pro
linux·json·excel
wtsolutions13 小时前
Real-World Use Cases - How Organizations Use JSON to Excel
json·excel
wtsolutions13 小时前
Introduction to JSON to Excel - The Ultimate Conversion Tool
json·excel
San30.14 小时前
LangChain 第二课:拒绝“废话”,用 Zod 强制 AI 输出标准 JSON
人工智能·langchain·json
wtsolutions14 小时前
JSON to Excel WPS Add-in - Perfect for WPS Office Users
json·excel·wps
wtsolutions15 小时前
Flat vs Nested JSON Conversion - Deep Dive into Conversion Modes
json