Docs Home → Launch & Manage MongoDB → MongoDB Atlas
Connect to Your Federated Database Instance
On this page
Estimated completion time: 15 minutes
This part of the tutorial will walk you through connecting to your
federated database instance using the MongoDB Shell, mongosh
.
Prerequisites
To complete this part of the tutorial, you will need to have completed the following:
Procedure
Go to the Data Federation page for your project.
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
If the Database Deployments page is not already displayed, click Database under Deployment in the sidebar.
Click Data Federation under Services in the sidebar.
Choose your connection method.
You can connect using any of the following:
Atlas SQL
Note
To run the sample queries, choose mongosh
.
Note
Only one user can authenticate on a connection to a federated database instance at any
given time. If a user authenticates and then runs the db.auth()
command, Data Federation replaces the previous user's permissions with the new
user's permissions.
The connectionStatus
command shows only the newly authenticated user in the
authenticatedUsers
output field.
Next Steps
Now that you're connected to your federated database instance using mongosh
, proceed to
Run Queries Against Your federated database instance.