Skip to content

Commit 99a7567

Browse files
committed
(DOCSP-17931): Incorporated Jeff's feedback.
1 parent 03343f5 commit 99a7567

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

source/reference/connection-string.txt

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ between applications and MongoDB instances in the official MongoDB
1919
:driver:`Drivers </>`. For a list of drivers and links to
2020
driver documentation, see :driver:`Drivers </>`.
2121

22-
.. note::
23-
24-
The MongoDB Atlas UI provides the connection strings for you
25-
when you :atlas:`connect to a database deployment
26-
</connect-to-database-deployment/>`. To register a new Atlas
27-
account, start at the :mdbacct:`MongoDB Atlas registration page
28-
</register?tck=docs_atlas>`.
29-
3022
Connection String Formats
3123
-------------------------
3224

@@ -130,6 +122,23 @@ Examples
130122

131123
.. include:: /includes/fact-pct-encode-uri.rst
132124

125+
- id: atlas
126+
name: Atlas Deployment
127+
content: |
128+
129+
.. note::
130+
131+
The MongoDB Atlas UI provides the connection strings for
132+
you when you :atlas:`connect to a database deployment
133+
</connect-to-database-deployment/>`. To register a new
134+
Atlas account, start at the
135+
:mdbacct:`MongoDB Atlas registration page
136+
</register?tck=docs_atlas>`.
137+
138+
.. code-block:: bash
139+
140+
mongosh "mongodb+srv://cluster0.example.mongodb.net myFirstDatabase" --username JohnDoe
141+
133142
For more examples, see :ref:`connections-connection-examples`.
134143

135144
Components

0 commit comments

Comments
 (0)