Skip to main content

馃憪 Get your connection string

In order to ingest data into your cluster later in the lab, you will need to get the connection string for your cluster.

In the Atlas UI, navigate to the Overview page. In the Clusters section, select the cluster you just created and click Connect.

Screenshot of the connect button

A modal will display several ways to connect to your database.

Screenshot of the connect modal

Select Compass. While we won't be using Compass to import the data, it's an easy way to see your connection string.

Screenshot of the connection string

Look for your connection string. It should look something like:

mongodb+srv://<username>:<password>@<cluster-url>/

Click the copy button next to your connection string to copy it to your clipboard. Paste the connection string somewhere safe.

tip

Don't forget to replace <password> with the password you set when you created the cluster.