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

前端 未结 14 1715
渐次进展
渐次进展 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:20

    I got the same error and fixed it with:

    1) mkdir c:\data

    2) cd data

    3) mongod -dbpath .

    4) Now in another command window I was able to connect from my client using the mongo command.

提交回复
热议问题