On this page
The General connection tab allows you to select a Connection String Scheme and configure the hostname or hosts used to connect to your MongoDB deployment.
You can select one of the following options:
Connection String Scheme
Standard Connection String Format. The standard format of the MongoDB connection URI is used to connect to a MongoDB deployment by specifying its hosts directly.
DNS Seed List Connection Format. The
In the Host field, enter the hosts or hostname of the server where the deployment is running.
If you are running your deployment locally, this value is
If you are connecting to an Atlas cluster, see
Connect to Database Deployment
for Atlas-specific guidance on how to connect with Compass.
If you are not sure of your hostname, contact your Database Administrator for information.
When you use the
mongodb Connection String Scheme, you have the
option to enable a Direct Connection. When you
enable this setting, Compass runs all operations on the specified
When you specify
directConnection and connect to a secondary member
of a replica set, your write operations fail because it is not the
(Optional) For advanced connection configuration options, click the Advanced tab.
To disconnect from your deployment, see Disconnect from MongoDB.