javascript - MongoError: Authentication failed. - trouble connecting to MongoLab -


i trying connect mongolab (sandbox). i'm using mean.

i've put development , production strings inside mongo={} in credentials.js file. i'm not sure how put database username , password. can see username , pass on mongolab website, i'm unsure of format use, can please leave example?

see official documentation. connection uri formatted this:

mongodb://<dbuser>:<dbpassword>@ds012345-a0.mongolab.com:56789/sample-db

you'll find correct uri database on admin page in mongolab.


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -