Need Support?

How MongoDB Connection Strings Work in Studio 3T

If you’ve been shopping around for a MongoDB client, you may have come across the cumbersome task of manually entering connection details, or writing out a MongoDB connection string in the correct URI format.

Studio 3T makes connecting to a MongoDB database easy, which starts with how it treats connection strings or URIs.

Click “Copy to clipboard“. Your MongoDB connection string is ready to be pasted and shared!

Export to a URI file

Ensure that you are or have recently connected to a database.

On Studio 3T, click on “Connect” and choose a Connection.

Click on “Export” – this will open the Export Connections window.

Choose the Connection and edit the settings as needed (e.g. include passwords, SSH configuration).

Click “Export“- this will trigger your .uri file export.

Choose your file destination – and done!

How to connect with a MongoDB connection URI

Now that you have your connection URI, our MongoDB client also makes it easy to connect to a database through two ways: copy + paste and connection URI file import.

Copy + paste

On Studio 3T, click on “Connect” and choose “New Connection“

Click on “From URI…” and paste your MongoDB connection URI

Import a URI file

Paste your connection details to a text editor and save it as a .uri file.

On Studio 3T, click on “Connect” and choose “Import“.

Click on “Open Connection URI File“.

Choose your .uri file, click “Import“… and you’re in!

While these two connection methods work seamlessly on Studio 3T, other MongoDB GUIs, clients, and cloud providers only support the standard URI format.

So even though your Studio 3T-generated MongoDB connection URI has all the information (e.g. SSH details, passwords), others might strip it down to the standard format and require you to enter the other details manually.

Already connected to your database? Read on to navigate Studio 3T like a pro:

Was this article helpful?

About The Author

Kathryn Vargas

Kathryn wants to let the world know that Studio 3T is the best MongoDB IDE out there. When she's not gushing over Studio 3T's useful features, she spends her free time exploring Berlin's food scene, playing the drums, learning languages (current mission: German), and writing.