Tuesday, 26 April 2016

how to start mongodb server in windows

Steps to start mongodb server in windows
1. Open the command prompt
2. Open the directory where you have installed mongodb
3. Suppose you have installed mongodb in 'D' drive. open the directory upto bin folder
4. D:\>cd mongo\bin will take to bin directory.
5. Now run the mongo db server using command D:\mongo\bin>mongod --dbpath d:\mongo\data

 done, server will start. if not please check the command again and path where you installed  mongodb.

thankyou


1 comment:

  1. if mongo server doesnot start , try again by deleting mongo.lock file which is present in mongo\data folder.

    ReplyDelete