Docs Menu
Docs Home
/
Start with Guides

Get Connection String

In this guide, you will retrieve your database deployment's connection string.

  • Add your IP address to the allowlist to allow access to your Atlas cluster.

  • Locate your connection string and copy it.

Time required: 3 minutes

  • A MongoDB account. See Sign Up for a MongoDB Account.

  • An Atlas cluster. See Create a New Cluster.

  • A MongoDB user. See Configure MongoDB Users in the Atlas documentation.

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2

Click the Connect button on the cluster management panel. The following Atlas screenshot shows the Connect button:

sample-data-cluster
click to enlarge
3

In the Choose your connection method step in the modal, select the button marked Connect Your Application.

The following Atlas screenshot shows the connection option buttons:

connection-string
click to enlarge

Follow the instructions for your driver language and version.

If you have successfully completed this guide, you have retrieved your database deployment's connection string in your copy buffer.

What's Next
Add a MongoDB Driver
5 mins

View and install one of the MongoDB drivers we cover in our guides.

Start Guide
Chapter 2
CRUD
  • Add a MongoDB Driver
  • Read Data in MongoDB
  • Read Data from MongoDB With Queries
  • Read Data using Operators and Compound Queries
  • Insert Data into MongoDB
  • Update Data in MongoDB
  • Delete Data from MongoDB

Next

Start with Guides