Connection Guide

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

Connection Guide

Overview

Learn how to set up a connection and specify connection behavior from your application to a MongoDB deployment using the driver in the following sections:

  • [Create a MongoClient](https://www.mongodb.com/docs/drivers/java/sync/current/connection/mongoclient.md#std-label-java-mongoclient

  • [Specify Connection Options](https://www.mongodb.com/docs/drivers/java/sync/current/connection/specify-connection-options/stable-api.md#std-label-java-specify-connection-options

  • [Connection Troubleshooting](https://www.mongodb.com/docs/drivers/java/sync/current/connection/connection-troubleshooting.md#std-label-java-connection-troubleshooting

For information about authenticating with a MongoDB instance, see the [Authentication Mechanisms](https://www.mongodb.com/docs/drivers/java/sync/current/security/auth.md#std-label-java-authentication-mechanisms section.