Jump to content
Sign in to follow this  
smus

How do I start MongoDB server using Windows command line?

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...