After first installing MongoDb and running the mongod
command
in the C:\\Program Files\\MongoDB\\Server\\3.2\\bin>
directory, I get the error:<
I did the following:
i.e, looked like the following :
*** C:\Program Files\MongoDB\Server\3.2\bin> mongod --storageEngine=mmapv1 --dbpath C:\data\db
PS: Sorry people, but the reason for answering my own question is that I hope this will help someone else if they ever are in my position.
Please refer to this question's answers(I borrowed from there) :
MongoDB cannot start server: The default storage engine 'wiredTiger' is not available with this build of mongod
In terms of " ..no /data/db folder..". error you have to create this directory manually on C:\ so the path of the directory is C:\data\db
Just execute this command in your Mongo/bin directory:
mongod --storageEngine=mmapv1 --dbpath [your-path]