MongoDB 1 Click install: username, password, db name?

March 18, 2016 1.6k views
MongoDB Deployment Ubuntu

I install MongoDB with MongoDB one click install. I need to connect it with my app from other DO server. I need username, password, and db name. How do I find out these?

Thank you

1 Answer

By default, MongoDB does not have a user or password set. It is secured by restricting access to the local loopback interface. There are a number of different ways that you can set up authentication. The MongoDB security checklist is a good starting point for the options available. This tutorial covers some basics about DigitalOcean's MongoDB One-Click including opening it up for external access:

The default database name is simply test If you enter the MongoDB shell by running the mongo command, typing db will return the name of the database. use can be used to switch databases. If the database didn't exist yet, it will be created. For instance,

> db
> use new-database
switched to db new-database
> db
**Archived:** MongoDB is a highly-scalable NoSQL database with a document-based data model and an expressive query language. DigitalOcean's MongoDB One-Click application allows you to quickly spin up a droplet with MongoDB pre-installed. It aims to help get your application off the ground quickly.
Have another answer? Share your knowledge.