Mongodb connection refused 127.0.0.1:27017 error solved | mongoose connect error running npm start

Поделиться
HTML-код
  • Опубликовано: 1 апр 2023
  • fixed with 3 possible solutions :
    Mongodb Error : couldn't connect to server 127.0.0.1:27017, connection attempt failed : solved in less than 2 minutes
    change to 0.0.0.0
    MongooseSeverSelectError:connect ECONNREFUSED 127.0.0.1:27017
    connect ECONNREFUSED 127 0 0 127017 Resolved this error in mongo Db in English
    Download mongodb :
    www.mongodb.com/try/download/...
    Watch how to connect your mern app with mongodb :
    • How to connect your ME...
    ✔Connect with CodingBot
    [ RUclips ]
    / @codingbotindia
    Make sure to subscribe !
    Thank you for tuning on.
    ©codingbot_2021
    .all rights reserved by FROYO CHANNEL NETWORK
    #npm #mern #mernstack #mongodb #programming #edureka #codingbot #mongodberror #react #webdevelopment #express #nodejs #cleverprogrammer #programmingtutorials #froyo #webapp #webdeveloper

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

  • @CodingBotIndia
    @CodingBotIndia  Год назад +6

    Watch this playlist .Your problems will be solved , sure👇ruclips.net/p/PL2Iudrib2UqBMfWubK0zavAh_Hr9e6i8H
    Subscribe to the channel it means a lot ❤️

  • @aashishrana6882
    @aashishrana6882 Год назад +6

    thank you so much bro from the last two days i was stuck in this . Now i connected by third method😃😃😃🤩

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

    You're clear and concise with solutions. Please keep it up, you are a life saver ! 😅😅

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

    Thank you for this video. I can't begin to tell you how much I've been struggling with connection errors. You just earned a new subscriber! Thank you

  • @virtualrealitymessenger
    @virtualrealitymessenger 3 месяца назад +1

    subscribed! Thank you for the help. It actually worked when i changed "localhost" into "0.0.0.0" . Thank you.

  • @amrmashaal834
    @amrmashaal834 6 месяцев назад +1

    thank yooooooooou, I spent 3 hours of trying to solve this issue

  • @arshadsyed033
    @arshadsyed033 3 месяца назад

    Thanks bud! I was trying to connect the db from last two days 🤝🤝

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

    For providing this solution...now my MongoDB server is connected..... thanks again..🎉

  • @zahraba398
    @zahraba398 8 месяцев назад

    one of the best and quickest solution ever...thank you so much for sharing

  • @proximamidnight3820
    @proximamidnight3820 7 месяцев назад +1

    Bro thank you so much, I almost spend a day to fix this error

  • @asfaquekhan6614
    @asfaquekhan6614 10 месяцев назад

    Thanks ...it worked...I was stuck on this from last 2 hour

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

    Thank you soo much for this helpful tutorial. The last one worked for me

  • @airtonvicenteklauck688
    @airtonvicenteklauck688 6 месяцев назад

    Thank you so much! I expend hours and hours and it was something as silly as changing localhost to 0.0.0.0

  • @dougcontreras2665
    @dougcontreras2665 Год назад

    Thank you so much! , last step did the trick.

  • @adnan19672000
    @adnan19672000 Год назад

    thanks, that was straightforward and it worked fine.

  • @calebopule2490
    @calebopule2490 Год назад

    The last option worked for me, Thanks

  • @dasunbro17
    @dasunbro17 9 месяцев назад +1

    Thank you so much. Keep it up the good work❤

  • @user-gv9nz7lp3l
    @user-gv9nz7lp3l 7 месяцев назад

    You saved my life. Thank you so much 😅

  • @ZayanGraphics
    @ZayanGraphics 8 месяцев назад

    thank you so
    much the third trick is working

  • @mdyousufgazi4030
    @mdyousufgazi4030 Год назад

    thank you so much last step worked

  • @samuelbucher5189
    @samuelbucher5189 6 месяцев назад

    Thank you very much, comrade.

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

    thank u so much , the third solution comes for me

  • @user-hm9bh7wv9h
    @user-hm9bh7wv9h Год назад +1

    thank you so much i was frustated now i get connected successfully

  • @YourComradeBG
    @YourComradeBG 3 месяца назад

    thank you biro for help me through this video ❤

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

    Thank you so much

  • @user-fz9bc7nw6l
    @user-fz9bc7nw6l 8 месяцев назад

    bro thanks u are lifesaver

  • @mdfaizulmohammed1845
    @mdfaizulmohammed1845 3 месяца назад

    My error is solved, alhamdulillah 😊

  • @mohdshoebkhan1896
    @mohdshoebkhan1896 10 месяцев назад

    Thank you so much ❤

  • @coder.rubelhossain
    @coder.rubelhossain 8 месяцев назад

    Thank you so much year!

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

    in my case I'm having no mongoDB services in task manager and done the replacing 0.0.0.0, or 127.0.0.1:27017, or localhost and in my cmd nothing is getting which is related to the command mongo, then what to do, or what is missing from there, kindly help in this case ...

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

      Try uninstall and reinstalling matched with your OS bit version

  • @dawinz2124
    @dawinz2124 9 месяцев назад

    Thanks so much man ❤️

  • @39_palakved23
    @39_palakved23 6 месяцев назад

    Thanku so much 🙏

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

    thank you really helpful

  • @subhankarsahoo1316
    @subhankarsahoo1316 9 месяцев назад

    Thank you so much bro

  • @cmtreader1
    @cmtreader1 11 месяцев назад

    thankyou so much

  • @nishamehta6700
    @nishamehta6700 7 месяцев назад

    Thankyou sir 😊

  • @serpilozguven8133
    @serpilozguven8133 26 дней назад +1

    Thanks👍

  • @arthurtaho4352
    @arthurtaho4352 Год назад

    thanks it work for me

  • @rahuler3836
    @rahuler3836 Год назад

    thank you dear

  • @sanskariguru4463
    @sanskariguru4463 5 месяцев назад

    thanks a lot brother

  • @rykdee24
    @rykdee24 10 месяцев назад

    thank you soo much man

  • @a3sgamer375
    @a3sgamer375 5 месяцев назад

    Thnks my bro❤

  • @wakhiwemathuthu
    @wakhiwemathuthu 7 месяцев назад

    Thanks man.

  • @arvamartin4468
    @arvamartin4468 5 месяцев назад

    Thanks Bro!!

  • @deepakukkoji8479
    @deepakukkoji8479 20 дней назад

    Thanks bro.❤

  • @knowledge1329
    @knowledge1329 9 месяцев назад

    Thanks

  • @chhayashah8612
    @chhayashah8612 9 месяцев назад

    Nice video helpfula

  • @dhruvsatyapanthi9766
    @dhruvsatyapanthi9766 9 месяцев назад

    Worked

  • @aadeshsatpute6309
    @aadeshsatpute6309 5 месяцев назад

    Thnx bro ❤

  • @Nitish_2938
    @Nitish_2938 7 месяцев назад

    While clicking on mongo db services it says that could not start MongoDB services (MongoDB) service on Local Computer. Error 1067: The process terminated unexpectedly.

    • @CodingBotIndia
      @CodingBotIndia  7 месяцев назад

      Try uninstall and reinstall mongodb

  • @mohammadmalek5042
    @mohammadmalek5042 Год назад

    Thaaaaaanks❤️❤️

  • @soufianefatih5720
    @soufianefatih5720 8 месяцев назад

    thansk

  • @thewandererog
    @thewandererog Год назад

    thanks man

  • @camiloestrada3677
    @camiloestrada3677 9 месяцев назад +1

    Gracias :D

  • @inhphucle7051
    @inhphucle7051 10 месяцев назад

    thanks

  • @abdulrahmanmuhd7794
    @abdulrahmanmuhd7794 10 месяцев назад

    thanks u

  • @sanketlalla
    @sanketlalla Год назад

    Thank you sir.. Change localhost to 0.0.0.0 worked out for me..
    Can u explain the reason behind this? Is it a laptop problem.. Can u pls elaborate sir.

    • @CodingBotIndia
      @CodingBotIndia  Год назад

      the localhost is just a name. The IP address assigned with that 'localhost' is 0.0.0.0 which means every web address has an unique ip address. Ex:- lets say google.com = 123.34.0.21 like this

    • @sanketlalla
      @sanketlalla Год назад

      @@CodingBotIndia So should I do something extra sir..do u recommend something extra for future coding...so prblm like this don't occur ever

  • @soldour7597
    @soldour7597 Год назад +1

    Thanks for sharing. But the problem still persists even after doing that?

    • @CodingBotIndia
      @CodingBotIndia  Год назад

      Try reinstalling mongodb according to the bit version of your system. Ex:- 64 bit or 32 bit. Or try upgrading the version

    • @soldour7597
      @soldour7597 Год назад

      @@CodingBotIndia G:\Coding Acadamy\js\Advanced fun\MongoD
      ode_modules\mongoose\lib\connection.js:791
      err = new ServerSelectionError();
      ^
      MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
      at _handleConnectionErrors (G:\Coding Acadamy\js\Advanced fun\MongoD
      ode_modules\mongoose\lib\connection.js:791:11)
      at NativeConnection.openUri (G:\Coding Acadamy\js\Advanced fun\MongoD
      ode_modules\mongoose\lib\connection.js:766:11) {
      reason: TopologyDescription {
      type: 'Unknown',
      servers: Map(1) {
      'localhost:27017' => ServerDescription {
      address: 'localhost:27017',
      type: 'Unknown',
      hosts: [],
      passives: [],
      arbiters: [],
      tags: {},
      minWireVersion: 0,
      maxWireVersion: 0,
      roundTripTime: -1,
      lastUpdateTime: 1952326,
      lastWriteDate: 0,
      error: MongoNetworkError: connect ECONNREFUSED ::1:27017
      at connectionFailureError (G:\Coding Acadamy\js\Advanced fun\MongoD
      ode_modules\mongoose
      ode_modules\mongodb\lib\cmap\
      connect.js:370:20)
      at Socket. (G:\Coding Acadamy\js\Advanced fun\MongoD
      ode_modules\mongoose
      ode_modules\mongodb\lib\cmap\conn
      ect.js:293:22)
      at Object.onceWrapper (node:events:628:26)
      at Socket.emit (node:events:513:28)
      at emitErrorNT (node:internal/streams/destroy:151:8)
      at emitErrorCloseNT (node:internal/streams/destroy:116:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
      cause: Error: connect ECONNREFUSED ::1:27017
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) {
      errno: -4078,
      code: 'ECONNREFUSED',
      syscall: 'connect',
      address: '::1',
      port: 27017
      },
      [Symbol(errorLabels)]: Set(1) { 'ResetPool' }
      },
      topologyVersion: null,
      setName: null,
      setVersion: null,
      electionId: null,
      logicalSessionTimeoutMinutes: null,
      primary: null,
      me: null,
      '$clusterTime': null
      }
      },
      stale: false,
      compatible: true,
      heartbeatFrequencyMS: 10000,
      localThresholdMS: 15,
      setName: null,
      maxElectionId: null,
      maxSetVersion: null,
      commonWireVersion: 0,
      logicalSessionTimeoutMinutes: null
      },
      code: undefined
      }
      Node.js v18.16.0

    • @soldour7597
      @soldour7597 Год назад

      Here is the message I am getting

    • @harshitasoni4565
      @harshitasoni4565 Год назад

      @@soldour7597 how did u solve this?

  • @hellowr233
    @hellowr233 7 месяцев назад

    What if I'm hosting it on a host? How to solve it on host?

  • @lunatic-genius
    @lunatic-genius Год назад

    good

  • @abhishekkr23
    @abhishekkr23 11 месяцев назад

    const MongoClient = require('mongodb').MongoClient;
    const url = "mongodb://0.0.0.0:27017/";
    MongoClient.connect(url, (err, client)=>{
    if(err) throw err;
    console.log("db connected");

    })
    plz help it is not running

    • @CodingBotIndia
      @CodingBotIndia  11 месяцев назад

      Follow this video ruclips.net/video/SBKG7zzKxAA/видео.html

  • @funnyanimation888
    @funnyanimation888 10 месяцев назад

    Thanks

  • @SG-yy1io
    @SG-yy1io 7 месяцев назад

    Thanks