MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 SOLVED in Mongosh Mongodb
HTML-код
- Опубликовано: 21 фев 2024
- How to fix MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017 in mongosh mongodb in windows is shown in this video
Mongonetworkerror: connect econnrefused 127.0.0.1:27017 error typically occurs when “your local application is unable to connect to a MongoDB server running at port 27017.” The “ECONNREFUSED” means that the server actively refused the connection.
Solution: Checking if the MongoDB server is running
Make sure the MongoDB service runs on the machine where the error is generated.
If you are using Windows, you can follow this: run services.msc and activate the MongoDB service.
Make sure you need to add mongodb and mongosh path locations as environmental variables.
#mongodb #mongodbshell #mongosh Хобби
thanks my bro
You are welcome
Lease ive tried this but its not working at all?
Still showing me the error
have you tried restarting or reinstalling
Please I've tried this but its not working at all
Still showing me the error
Any other solutions?
have you tried restarting? What about reinstalling
@@mjhacks6443 I've reinstalled alot of times but it didn't work
@@mjhacks6443 I have reinstalled a number of times too still it keeps showing me the error
Thnks buddy
Thanks for the comment 🤗
Hello bhaii its still not working plzz give any another solution plzz broo i m fed up with this error noww
1.Does your mongodb path have /bin at the end?
2.Does your mongosh path have /bin at the end?
3.Close the command prompt and open new one and try running "mongosh"
4. Are you still getting the same error?
Let me know the answer?
@@mjhacks6443 yes bhaiya it is still giving me same error actually whats happening is that anytime that error comes when i am doing the project and it is not been able to solve and now i am fed with this i am not able to solve that problem i have done everything that you have mentioned in above points and i have start the mongodb.exe from services also but then also the problem continues
1. Where you able to use mongsh /mongodb compass after first installation
2. Can you see mongodb in services?
@@mjhacks6443 yes sir i have started it but as soon as a close the application and again open the services it automatically get off (mongodb services) idk why its happening
Now reinstall mongodb and mongosh