Connecting
Inhaltsverzeichnis
- Connecting over SSL
- Authentication
- Replica Sets
- Sharding
- Domain Socket Support
- Connection Pooling (version 1.2.0-1.2.12 *only*)
- Persistent Connections (version up to 1.1.4 *only*)
Connecting to MongoDB can be as easy as new MongoClient, but there are many additional options and configurations. The documentation for MongoClient::__construct() covers all of the API options, but this page gives some more details and advice for practical use cases.