Sunday, 22 January 2017

MongoDB Session 2 : Miscellaneous things during start MongoDB server

Keep below points in mind before starting MongoDB

1. Create folder "data" inside that another folder "db" in the same drive where you installed MongoDB
2. Installing drive should contain free space more than 3GB
Reason: MongoDB stores all DB details in c:\data\db  ( Check path where you created folder "data\db")
Note: try to create data\db folder on the same drive where you installed MongoDB software.

What if space is not available ...? hmm you will get below error while starting MongoDB server



3.You have to open two cmd prompt one for starting MongoDB server and second for opening MongoDB shell prompt.
Note: Don't close the first cmd window. If you close then the server will stop.
4.If you facing problem in starting server then check in case data/db folder contains MongoDB.lock file. if so it means MongoDB server is already running and you can't run that again.

Error message looks like 

No comments:

Post a Comment