Ask Question

How to install MongoDB on Windows

DavidX07/20/2012 02:59 PM (Edited 07/20/2012 03:01 PM) | Report

MongoDB Windows Installation:

  1. Download last version of MongoDB for Windows
  2. Extract downloaded folder to the root folder of C:\
  3. Rename the extracted folder from mongodb-win32-* to C:\mongodb
  4. Create two MongoDB data folders: C:\data and C:\data\db (this is default location folder for MongoDB data, you can use another location - see below)
  5. Start MongoDB - C:\mongodb\bin\mongod.exe.

You can create shorcut to mongod.exe and put it on the desktop or Start menu.
You can aslo change the data folder, for example create data folders in c:\mongodb folder - C:\mongodb\data and C:\mongodb\data\db and change Target field in the shortcut to:

C:\mongodb\bin\mongod.exe --dbpath c:\mongodb\data

For more info see http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

Answers

Add a answer ▾

Discussion

 Add a question comment ▾