Unable to connect to MongoLab “auth fails” error

后端 未结 4 1093
南方客
南方客 2021-02-05 05:37

I am new to mongo. Recently created an account in mongoLab.

I am trying to connect to the database using the below statement.

mongo ds039487.mongolab.co         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 06:00

    Old thread, but just in case it helps anyone else: my problem was using shell version 2.4.9 to connect to mongo db version 3.0.7 (http://docs.mongolab.com/connecting/#mongo_shell).

    Updating my shell sorted it (https://docs.mongodb.org/master/tutorial/install-mongodb-on-ubuntu/).

提交回复
热议问题