How to connect to Mongodb Compass Community?

Asked

Viewed 1,366 times

1

I installed mongodb on my machine and along with it came the Compass Community program.

When I ran mongod.exe you can see the name of the host and the port, so I put the name of the host in the Hostname field, and put it in the Port field in Compass Community, but I still don’t connect and gave the message saying Mongodb not running on the provided host and port

You could tell me how to connect Compass Community on mongodb?

  • Installing on Windows? If so, you have set up Path?

  • I’m using windows, I didn’t set Path

  • how do I set up the path? the executable path is this C: Users wladi Appdata Local Mongodbcompasscommunity Mongodbcompasscommunity.exe

1 answer

1


First of all, I think it’s important to note that everything you need to know about mongoDB at the beginning, will easily find on documentation. To be able to connect to Compass you need to have an instance of Mongod running and put IP and Port correctly in the fields before connecting. You also need to configure File Path, follow the steps:

1-Go to the Mongo installation folder and find the folder Bin.

2-Copy the path to the folder.

3-In the start menu, search for "environment variables".

4- In the tab "Advanced", at the bottom right corner, click "Environment Variables".

5- To have a variable named "Path", edit its value with the Bin folder path, previously copied.

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.