Sunday, December 11, 2011

Install Mongodb in Window

How to install MongoDB in Windows

1. Download windows version of mongodb from http://mongodb.org
2. Extract Zipped files on "c://mongodb"

3. Goto location from terminal and simply type "mongod" to run server
4. If error occurs then - create folder "d:\mongo\data" and "d:\mongo\data\db"
mongod --logpath d:\mongo\logs --logappend --dbpath d:\mongo\data --directoryperdb --install

If there is still error then
- goto "start" -> type "cmd" -> right click for "cmd" -> select option "run as administrator"
- and then repeat step 4.

No comments:

Post a Comment