File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,17 @@ description: |
77
77
78
78
.. code-block:: none
79
79
80
- <replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
80
+ --host <replSetName>/<hostname1><:port>,<hostname2><:port>,<...>
81
81
82
- You can always connect directly to a single MongoDB instance by
83
- specifying the host and port number directly.
82
+ When specifying the replica set list format, {{program}} always connects to
83
+ the :term:`primary <Primary>`.
84
+
85
+ You can also connect to any single member of the replica set by specifying
86
+ the host and port of only that member:
87
+
88
+ .. code-block:: none
89
+
90
+ --host <hostname1><:port>
84
91
85
92
.. versionchanged:: 3.0.0
86
93
If you use IPv6 and use the ``<address>:<port>`` format, you must
You can’t perform that action at this time.
0 commit comments