Friday 26 August 2016

MongoDB Installation for Windows

MongoDB Installation for Windows

  • Download Mongo DB from site for windows
    URL:: https://www.mongodb.com/download-center?jmp=nav#community
  • Install the downloaded file in C drive
  • Create a file folder in C drive in below location
    location:: 
    C:\data\db
  • Create a file folder in C drive in below location
    location:: C:\mongodb\db
  • Type the below command in command prompt
    Command::  
    C:\MongoDB\Server\3.2\bin>mongod.exe --dbpath "c:\mongodb\data"
  • To start mongodb type below command in new command prompt
    Command::  
    C:\MongoDB\Server\3.2\bin>mongo.exe

Now your MongoDB is ready to work