Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I start Mongo DB from Windows?

I have installed MongoDB on my Windows 7 (64 bit) machine. I have created the path data/db too but when I tried to start mongodb using the command 'C:\mongodb\bin\mongod.exe', it is not starting. It is showing admin web console waiting for connections on port 28017.

Help me in starting the MongoDB. And also please suggest if any GUI is available for MongoDB.

like image 273
user3095838 Avatar asked Oct 04 '22 02:10

user3095838


People also ask

How do I start MongoDB?

You can start MongoDB from a command line by issuing the mongod command and specifying options. For a list of options, see the mongod reference. MongoDB can also run as a Windows service. For details, see Start MongoDB Community Edition as a Windows Service.

Can you run MongoDB on Windows?

Installing and Running MongoDB on a Windows MachineDownload the MongoDB installer file from the downloads section of the MongoDB website. Find the dowloaded . msi file in the Windows Explorer. Double click the file and follow the prompts to install Mongo.


2 Answers

Step 1

Download the mongodb

Step 2

  • Follow normal setup instructions

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Step 3

  • Create the following folder

C:\data\db

Step 4

  • cd to C:\Program Files\MongoDB\Server\3.2\bin>
  • enter command mongod
  • by default, mongodb server will start at port 27017

enter image description here

Step 5

  • (optionally) download RoboMongo and follow normal setup instructions

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Step 6

  • Start RoboMongo and create a new connection on localhost:27017

enter image description here

Your MongoDB is started and connected with RoboMongo (now Robo 3T) - a third party GUI tool

like image 347
xameeramir Avatar answered Oct 20 '22 03:10

xameeramir


This worked for me

mongod --port 27017 --dbpath C:\MongoDB\data\db
like image 111
Ar maj Avatar answered Oct 20 '22 02:10

Ar maj