Mongo Database setup on Windows / Windows 10

Explains how to setup the Mongo Database on the Windows

4.7 Star
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • can this version be implemented in a laptop of 64bit windows 8.1 enterprise OS
    3 Posts | Last post May 15, 2017
    • Hi Team, can this version be implemented in a laptop of 64bit windows 8.1 enterprise OS? or it can be implemented only in windows server? I am just getting started to MOngoDB.
    • Yes. All the steps mentioned in the post are performed on laptop only so no worries
    • Thanks Shailendra.
  • Other person is right
    1 Posts | Last post March 11, 2017
    • One of the better guides out there for this! I agree with other person though you should also mention how to make the database. 
  • Not Quite Finished...
    1 Posts | Last post March 18, 2016
    • Hi, 
      Thanks for posting. The one thing that I needed to add to your instructions was to actually create the Mongo and database directories before running the final command. This was the output before I did so:
      C:\Users\aferl>mongod --dbpath c:\Users\aferl\Mongo\database
      2016-03-18T08:40:39.467-0700 I CONTROL  [initandlisten] MongoDB starting : pid=9064 port=27017 dbpath=c:\Users\aferl\Mongo\database 64-bit host=TONY-DESKTOP-B3AF77D
      2016-03-18T08:40:39.476-0700 I CONTROL  [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
      2016-03-18T08:40:39.480-0700 I CONTROL  [initandlisten] db version v3.2.4
      2016-03-18T08:40:39.483-0700 I CONTROL  [initandlisten] git version: e2ee9ffcf9f5a94fad76802e28cc978718bb7a30
      2016-03-18T08:40:39.487-0700 I CONTROL  [initandlisten] allocator: tcmalloc
      2016-03-18T08:40:39.490-0700 I CONTROL  [initandlisten] modules: none
      2016-03-18T08:40:39.494-0700 I CONTROL  [initandlisten] build environment:
      2016-03-18T08:40:39.499-0700 I CONTROL  [initandlisten]     distarch: x86_64
      2016-03-18T08:40:39.502-0700 I CONTROL  [initandlisten]     target_arch: x86_64
      2016-03-18T08:40:39.506-0700 I CONTROL  [initandlisten] options: { storage: { dbPath: "c:\Users\aferl\Mongo\database" } }
      2016-03-18T08:40:39.513-0700 I STORAGE  [initandlisten] exception in initAndListen: 29 Data directory c:\Users\aferl\Mongo\database not found., terminating
      2016-03-18T08:40:39.521-0700 I CONTROL  [initandlisten] dbexit:  rc: 100
      Created the directories. Now the output was:
      C:\Users\aferl>mongod --dbpath c:\Users\aferl\Mongo\database
      2016-03-18T08:46:15.447-0700 I CONTROL  [initandlisten] MongoDB starting : pid=10136 port=27017 dbpath=c:\Users\aferl\Mongo\database 64-bit host=TONY-DESKTOP-B3AF77D
      2016-03-18T08:46:15.452-0700 I CONTROL  [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
      2016-03-18T08:46:15.460-0700 I CONTROL  [initandlisten] db version v3.2.4
      2016-03-18T08:46:15.462-0700 I CONTROL  [initandlisten] git ...