Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

Couldn't connect to server mongodb://127.0.0.1:27017

Asked by Gillian Hamer Jul 12, 2021 1.6K views 2 answers
Share

About this question

I'm getting the following error:

alex@alex-K43U:/$ mongo 
MongoDB shell version: 2.2.0 
connecting to: test 
Thu Oct 11 11:46:53 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91 
exception: connect failed 
alex@alex-K43U:/$

This is what happens when I try to start MongoDB:

* Starting database mongodb [fail]

I already tried mongo --repair

I made chown and chmod to var, lib, and data/db and log MongoDB.

Not sure what else to do. Any suggestions?

Your answer

2 Answers

Richardbrown Latest answer

Answered on Nov 19, 2024

Thanks for the helpful answers above. I appreciate them. Also, please play FNAF Games and give me a review!

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.