MongoDB on a Windows 7 machine: No connection could be made

前端 未结 14 1712
渐次进展
渐次进展 2020-12-02 10:39

After I have started Mongo using mongod.exe on a Windows 7 machine, I tried to start the mongo shell that failed with the error:

Failed to connect to

14条回答
  •  隐瞒了意图╮
    2020-12-02 11:24

    I tried the above answer , and it worked, but had a very important problem: My previous collections were lost in another mongoDB data folder which I didn't know where they are and how to get them back.

    Before I run in to this mongo error, I was running mongo with no problem. When my windows10 boot files got corrupted and My computer went into blue screen, mongo ran into this error. So I just tried to retrieve the previous condition which I just was running mongo in one terminal and not mongod in another, so

    I repaired mongoDB with it's installation exe file, and now everything is ok.

    This is my mongoDB specs: mongodb-win32-x86_64-2012plus-4.2.1

    Hope this help you too.

提交回复
热议问题