Unable to connect to MongoDB (MongoLabs) via C# client

后端 未结 4 755
庸人自扰
庸人自扰 2020-12-20 15:25

Question Background:

I have setup in MongoLabs (mLab - https://mlab.com/) a database and have added a very simple Collection. I am using the MongoDB

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 15:34

    I have similar issue, in my case user wasn't created in database. You can create user by this

    db.createUser({
          user: "userNameGoesHereRemovedForSO",
          pwd: "passwordGoesHereRemovedForSO",
          roles: ["readWrite", "dbAdmin"]
        });
    

提交回复
热议问题