Jump to content

How do I start MongoDB server using Windows command line?


smus

Recommended Posts

Since there is no 'NodeJS/MongoDB' discussion section I decided to post my question to 'JavaScript'.

I am trying to start the server by running mongod.exe, and by doing the same thing using cmd. I want to start the server and use it with a tool called Robo 3T to manipulate NoSQL databases. There is no active connection can be seen in Robo 3T after I start mongo. 

Can anyone explain what I am supposed to do? What is the correct way to run MongoDB on Windows?

Link to comment
Share on other sites

  • 2 weeks later...

To start MongoDB, run mongod.exe from the Command Prompt navigate to your MongoDB Bin folder and run mongod command, it will start MongoDB main process and The waiting for connections message in the console.

1*7MfTwwIOE3zThXtug3EUMw.png

If you want to connect mongodb through shell, use below commands

1*G4-ZNkUYCuynRbS70K4Gig.png

For more information follow this link:

https://medium.com/stackfame/run-mongodb-as-a-service-in-windows-b0acd3a4b712#:~:text=To start MongoDB%2C run mongod,connections message in the console.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...