MongoDB Error with C#

醉酒当歌 提交于 2019-12-11 18:17:57

问题


I have seen the Quickstart Windows and downloaded mongodb-win32-i386-2.0.4.zip and this error appears when I run mongo.exe:

Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84   
exception: connect failed  

What should I do? Do I need to download something else?


回答1:


mongo.exe is the Mongo Shell, which will attempt to connect to the server at localhost:27017 unless you explicitly specify another server and port.

The one you're after is mongod.exe (notice the 'd'?), which is the MongoDB Server.




回答2:


I think maybe you did not start your Mongo DB server.



来源:https://stackoverflow.com/questions/10343067/mongodb-error-with-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!