ECONNREFUSED error when connecting to mongodb from node.js

前端 未结 13 1223
不思量自难忘°
不思量自难忘° 2020-11-27 05:51

I know I\'m doing some very stupid and noobish, but I\'m hoping someone can help me set up a basic database connection to mongodb from node.js on a mac.

I\'ve instal

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 06:30

    you can go to mongoDB compass client and follow these steps: 1.Click Fill in connection fields individually:

    2.In hostname type : 127.0.0.1

    3. Click CONNECT.

提交回复
热议问题