- 官网下载mongo5.0 window版本
- 地址:MongoDB Community Download | MongoDB
- 选择 MongoDB Community server 中的window msi版本
- 按照提示一路安装
- 下载mongo tool,解压出来 mongorestore.exe
- 从mongo4.4开始,数据库工具不再是MongoDB服务器包的一部分。必须下载MongoDB数据库工具
- Download MongoDB Command Line Database Tools | MongoDB
- 解压 bin 文件夹,mongorestore.exe 等 复制到 mongo 的安装目录bin
- 执行 mongorestore.exe 命令
- mongorestore.exe --host 127.0.0.1 --port 27017 -d dbname bsonFile
window下导入mongo数据库
最新推荐文章于 2024-12-25 10:55:26 发布