I have mongo DB installed in the following path c:\mongodb\bin
. I have configured my environment variable PATH in advanced settings.I also have mongod running .When I run the following command mongorestore dump from the following path c:\hw1-1\dump
(This contains the BSON files) I'm getting this error:
Don't know what to do with the dump file
I have referred to this thread to check my path.
It took me some time to figure out the options for mongorestore , after i had kept getting this error for some time .
a) No running instances of mongod .
b)
mongorestore -v -host localhost:27017 --dbpath "Actual Path for the Mongo DB- set in config" "Location where the dump is"
Using dbpath , allows to run this command without any running version of mongod . And this resolved my error .