Question

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

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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
test
> use new-database
switched to db new-database
> db
new-database