编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭5年前。
我在以下路径 c:\mongodb\bin
中安装了 mongo DB。我已经在高级设置中配置了我的环境变量 PATH。我还运行了 mongod。当我从以下路径运行以下命令 mongorestore dump 时 c:\hw1-1\dump
(这包含 BSON 文件)我收到此错误:
Don't know what to do with the dump file
我提到了this thread检查我的路径。
最佳答案
在mongodb 3.0或以上版本中,我们应该指定要恢复的数据库名称
mongorestore -d [your_db_name] [your_dump_dir]
关于mongodb - mongorestore 错误 : Don't know what to do with the dump file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21233290/