

Compass a GUI alternative to the Mongo shell, which we’ve previously discussed. ping each other (client from server, and vice versa) using ipconfig, using command ping IPhere, you should get Reply from. Use the right-hand menu to navigate.) What is MongoDB Compass MongoDB Compass is a GUI to explore, analyze, and interact with the content stored in a MongoDB database without knowing or using queries. MongoDB compass is nothing but a graphical user interface that can be connected to the MongoDB database and used to find, analyze, modify, and visualize the data stored in the database without requiring any knowledge of queries. To get computer name of your MongoDB server, use hostname in CMD(on the MongoDB server computer).Īfter doing all above, if you have issues, then: Once Compass connects to your local server, it will display information about the databases.

Now, you can connect from another machine. Scroll down on the right to select MongoDB ServerĬonnect to MongoDb server, from another machine NOTE: If your IP address changes everyday, then best is to write the computer name (type hostname in cmd to get the name of your computer) Add a COMMA at the end, and paste the copied IP, like below:.

MONGODB COMPASS CONNECT TO LOCALHOST WINDOWS
targetMinOS: Windows 7/Windows Server 2008 R2 This will set up the MongoDB on your machine, and you will get an output as preceding.Ĭ:\Program Files\MongoDB\Server\3.6\bin>mongod.Type the command C:\Program Files\MongoDB\Server\3.6\bin>mongod The standard URI connection string includes the following components: DNS Seed List Connection Format In addition to the standard connection format, MongoDB supports a DNS -constructed seed list.Go the folder, where you had installed MongoDB, in my case, it was C:\Program Files\MongoDB\Server\3.6\bin.Go to C drive and create a folder db in the path C:\data\db, if you don't see data folder in C drive, please create it first and then db folder as mentioned in the comment.Make sure that MongoDB service has been started in services.msc. If you are also facing this issue while you set up MongoDB for the first time, following steps may help you. I had faced this issue today and later I found that it was a set up problem.
