How to connect to the MongoDB Compass Community?

1

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

When I run mongod.exe you can see the hostname and port, so I put the hostname in the Hostname field and put it in the Port field in the Compass Community, but I still did not connect and gave the message saying < strong> MongoDB not running on the provided host and port

Could you tell me how to connect Compass Community to mongodb?

    
asked by anonymous 16.05.2018 / 13:02

1 answer

1

First, I think it's important to point out that everything you need to know about mongoDB in the beginning, you'll easily find in 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. It is also necessary to configure the File Path, follow the steps:

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

2- Copy the path to the folder.

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

In the Advanced tab, in the lower right corner, click "Environment Variables".

5- To have a variable named Path , edit the value of it with the path of the Bin folder, copied earlier.

I hope I have helped.

    
16.05.2018 / 13:21