Docs Menu

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

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

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

  3. If it's not already displayed, click Clusters in the sidebar.

    The Clusters page displays.

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.