diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index 880f8b68a12..7c147fd9d2d 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -25,7 +25,7 @@ The following is the standard URI connection scheme: .. code-block:: none - mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] + mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database[.collection]][?options]] The components of this string are: @@ -60,13 +60,14 @@ The components of this string are: Optional. The default value is ``:27017`` if not specified. -#. ``/database`` +#. ``/database[.collection]`` Optional. The name of the database to authenticate if the connection string includes authentication credentials in the form of ``username:password@``. If ``/database`` is not specified and the connection string includes credentials, the driver will - authenticate to the ``admin`` database. + authenticate to the ``admin`` database. The database may also + include the collection name. #. ``?options``