From the course: MongoDB Java Developer Associate Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Connecting to your database review

Connecting to your database review

- Congratulations on completing this unit. Now, you've learned different ways to connect to your MongoDB database by using your connection string. You've also learned how to troubleshoot common connection issues. We used the MongoDB connection string to connect to our database from the Mongo Shell, Compass, or an application. Remember that your connection string can be easily accessed from your Atlas project dashboard. Just click the Connect button on your desired cluster. This will open a separate window with several options to connect using your connection string. First, we used our connection string to connect to our database through the Mongo Shell. Once connected, we explored how to use the Node.js REPL environment by creating functions, variables, and loops. Next, we installed MongoDB Compass and used it along with our connection string to connect to our database. Compass is a graphical user interface for our…

Contents