Skip to content

Commit c3e6693

Browse files
committed
connection string
1 parent 108db92 commit c3e6693

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

source/get-started/connection-string.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,32 @@ To connect to an instance or deployment not hosted on Atlas, see
4343
.. figure:: /includes/figures/atlas_connection_copy_string_python.png
4444
:alt: The connection string copy button in the Atlas UI
4545

46-
.. step:: Edit and save the connection string
46+
.. step:: Edit your connection string credentials
4747

4848
Paste your connection string into a file in your preferred text editor
49-
and save this file to a safe location for use in the next step.
49+
and save this file to a safe location for later use.
5050
Your connection string resembles the following example:
5151

5252
.. code-block:: none
5353
:copyable: false
5454

5555
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/?retryWrites=true&w=majority&appName=SampleCluster
5656

57-
5857
Replace the ``<username>`` and ``<password>`` placeholders with
5958
your database user's username and password.
6059

61-
Then, specify a connection to the ``sample_mflix`` database from the
62-
Atlas sample datasets by adding it after the hostname, as shown in
63-
the following example:
60+
.. step:: Add a database to your connection string
61+
62+
Specify a database connection in your connection string by adding
63+
your database name after the hostname, as shown in the following example:
6464

6565
.. code-block:: none
6666
:copyable: false
6767

68-
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/sample_mflix?retryWrites=true&w=majority&appName=SampleCluster
68+
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/<database name>?retryWrites=true&w=majority&appName=SampleCluster
69+
70+
Replace the ``<database name>`` placeholder with ``sample_mflix`` to
71+
configure a connection to the ``sample_mflix`` Atlas sample database.
6972

7073
After completing these steps, you have a connection string that
7174
contains your database username, database password, and database name.

0 commit comments

Comments
 (0)