Connecting to a MongoDB Database

Learn how to connect to MongoDB databases by using connection strings. Connection strings allow you to connect your cluster with the mongo shell, with Compass (our GUI that enables querying, optimizing and analyzing MongoDB data), and to an application.

Unit Overview

In this unit, you will learn where to find your Atlas connection string inside of the Atlas dashboard. You'll also learn about the components of a Atlas connection string. Finally, you will have the opportunity to use your connection string to connect your Atlas cluster with the shell, Compass, and any type of application.

Prerequisites

Lessons in This Unit

  • Lesson 01: Using MongoDB Connection Strings

  • Lesson 02: Connecting to a MongoDB Atlas Cluster with the Shell

  • Lesson 03: Connecting to a MongoDB Atlas Cluster with Compass

  • Lesson 04: Connecting to a MongoDB Atlas Cluster from an Application

  • Lesson 05: Troubleshooting MongoDB Atlas Connection Errors

  • 01.
    Lesson 1: Using MongoDB Connection Strings
    • Learn
    • Practice
  • 02.
    Lesson 2: Connecting to a MongoDB Atlas Cluster with the Shell
    • Learn
    • Practice
  • 03.
    Lesson 3: Connecting to a MongoDB Atlas Cluster with Compass
    • Learn
    • Practice
  • 04.
    Lesson 4: Connecting to a MongoDB Atlas Cluster from an Application
    • Learn
    • Practice
  • 05.
    Lesson 5: Troubleshooting MongoDB Atlas Connection Errors
    • Learn
    • Practice
  • 06.
    Conclusion
    • Learn
Sarah Evans | Senior Curriculum Engineer

Sarah Evans | Senior Curriculum Engineer

Sarah is a Senior Curriculum Engineer on the Curriculum team at MongoDB. Prior to MongoDB, she taught and developed curricula for developer bootcamps. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.

Parker Faucher I Curriculum Engineer

Parker Faucher I Curriculum Engineer

Parker is a Curriculum Engineer on the Education team at MongoDB. Prior to joining MongoDB, he helped maintain a world-class developer boot camp that was offered in multiple universities. He is a self-taught developer who loves being able to give back to the community that has helped him so much.

Daniel Curran | Senior Curriculum Designer

Daniel Curran | Senior Curriculum Designer

Daniel is a Senior Curriculum Designer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specializing in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.

AK
October 23, 2023 2:09 PM

Good

JS
October 23, 2023 1:14 PM


TR
October 23, 2023 5:54 AM


NK
October 22, 2023 4:51 PM

very good

ZZ
October 22, 2023 1:35 PM

it was a great and for me it was a good experience as software student

XC
October 20, 2023 3:47 PM


DS
October 17, 2023 7:21 PM