@@ -53,7 +53,7 @@ A standard connection string includes the following components:
53
53
- Required. A prefix that identifies this as a string in the
54
54
standard connection format.
55
55
56
- * - ``username:password ``
56
+ * - ``db_username:db_password ``
57
57
58
58
- Optional. Authentication credentials. If you include these, the client
59
59
authenticates the user against the database specified in ``authSource``.
@@ -68,7 +68,7 @@ A standard connection string includes the following components:
68
68
* - ``/defaultauthdb``
69
69
70
70
- Optional. The authentication database to use if the
71
- connection string includes ``username:password @``
71
+ connection string includes ``db_username:db_password @``
72
72
authentication credentials but not the ``authSource`` option. If you don't include
73
73
this component, the client authenticates the user against the ``admin`` database.
74
74
@@ -83,8 +83,8 @@ To learn more about connection strings, see
83
83
:manual:`Connection Strings </reference/connection-string>` in the
84
84
Server manual.
85
85
86
- Create a `` MongoDB\Client``
87
- ---------------------------
86
+ Create a MongoDB\Client
87
+ -----------------------
88
88
89
89
To create a connection to MongoDB, pass your connection string when constructing
90
90
an instance of the ``MongoDB\Client`` class.
@@ -99,8 +99,7 @@ deployment on port ``27017`` of ``localhost``:
99
99
.. tip:: Reuse Your Client
100
100
101
101
Because each ``MongoDB\Client`` object represents a pool of connections to the
102
- database, most applications require only a single instance of
103
- ``MongoDB\Client``, even across multiple requests.
102
+ database, you can use a single instance of the class across multiple requests.
104
103
105
104
API Documentation
106
105
-----------------
0 commit comments