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
  • ХоббиХобби

Комментарии • 21

  • @EwosOficial
    @EwosOficial Месяц назад +2

    thanks my bro

  • @create_moviemoments
    @create_moviemoments Месяц назад +1

    Lease ive tried this but its not working at all?
    Still showing me the error

    • @mjhacks6443
      @mjhacks6443  Месяц назад

      have you tried restarting or reinstalling

  • @create_moviemoments
    @create_moviemoments Месяц назад +1

    Please I've tried this but its not working at all
    Still showing me the error
    Any other solutions?

    • @mjhacks6443
      @mjhacks6443  Месяц назад

      have you tried restarting? What about reinstalling

    • @create_moviemoments
      @create_moviemoments Месяц назад

      @@mjhacks6443 I've reinstalled alot of times but it didn't work

    • @create_moviemoments
      @create_moviemoments Месяц назад

      @@mjhacks6443 I have reinstalled a number of times too still it keeps showing me the error

  • @ashishrao1789
    @ashishrao1789 2 месяца назад +1

    Thnks buddy

    • @mjhacks6443
      @mjhacks6443  2 месяца назад

      Thanks for the comment 🤗

  • @navneetmalik7074
    @navneetmalik7074 4 месяца назад +1

    Hello bhaii its still not working plzz give any another solution plzz broo i m fed up with this error noww

    • @mjhacks6443
      @mjhacks6443  4 месяца назад

      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?

    • @navneetmalik7074
      @navneetmalik7074 4 месяца назад +1

      @@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

    • @mjhacks6443
      @mjhacks6443  4 месяца назад

      1. Where you able to use mongsh /mongodb compass after first installation
      2. Can you see mongodb in services?

    • @navneetmalik7074
      @navneetmalik7074 4 месяца назад +1

      @@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

    • @mjhacks6443
      @mjhacks6443  4 месяца назад

      Now reinstall mongodb and mongosh