Search code examples
databasemongodbdumpmongorestore

How to open mongo-db dump file?


I have a .dump file (8GB) which is a mongo database that I need to work with. I'm working with Robo 3T.

I've tried:

  • a) menu options in robo gui
  • b) mongorestore --db cert-db certctream.dump command, got error (using certctream without the extension didn't work as well)

Failed: file certctream.dump does not have .bson extension

What am I missing?


Solution

  • Solution:

    mongoimport --db <new_db_name> --host localhost:27017 path_to_dump_file