About this question
I just want to try MongoDB Compass GUI for MongoDB, but when I try to connect using local host port: 27017 I get this error:
Could not connect to MongoDB on the provided host and port
I followed these instructions on YouTube.
I just want to try MongoDB Compass GUI for MongoDB, but when I try to connect using local host port: 27017 I get this error:
Could not connect to MongoDB on the provided host and port
I followed these instructions on YouTube.
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Hadoop Expert
Dhananjay Singh JanBask Expert
Answered on May 11, 2021
To solve mongodb not running on the provided host and port issue you should just follow the following steps while connecting MongoDB tool(MongoDB Compass)to MongoDB:
Go to C drive and create a folder db in the path C:datadb, if you don't see the data folder in C drive, please create it first and then db folder
Go the folder, where you had installed MongoDB, in my case, it was C:Program FilesMongoDBServer.2in
Type the command C:Program FilesMongoDBServer4.2bin>mongod
This will set up MongoDB on your system and now if you try connecting, you may not be getting the issue.
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common Spark interview questions, answered
Guides, tips and career advice on Spark from JanBask experts.
Hadoop Frequently Used Hive Commands in HQL with Examples
Top Hive Commands in HQL With Examples of the most commonly used Hadoop Hive commands for importing, exporting, and querying data…
Hadoop How to Compare Hive, Spark, Impala and Presto?
Explore the strengths and weaknesses of Presto vs Impala vs Hive vs Spark for big data processing. Learn which tool is best…
Hadoop What Is Hue? Hue Hadoop Tutorial Guide for Beginners
What is Hue? Hue Tutorial Guide for Beginner, We are covering Hue component, hadoop ecosystem, Hue features, Apache Hue Tutorial…