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

authentication - Mongodb revoke acccess to connect test database -

python - GitPython: check if git is available -

c# - ASP.NET MVC Enumerable to delimited HTML in Razor -