File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ To specify a remote host and port, use a
62
62
To connect to a MongoDB
63
63
instance running on a remote host machine on port 28015:
64
64
65
- .. code-block:: sh
65
+ .. code-block:: sh
66
66
67
- mongosh "mongodb://mongodb0.example.com:28015"
67
+ mongosh "mongodb://mongodb0.example.com:28015"
68
68
69
69
.. note:: Connecting to |service|
70
70
@@ -82,19 +82,19 @@ To connect to a MongoDB instance requires authentication, use the
82
82
``--username`` and ``--authenticationDatabase`` command-line options.
83
83
``mongosh`` prompts you for a password, which it masks as you type.
84
84
85
- .. example::
85
+ .. example::
86
86
87
- To connect to a remote MongoDB instance and authenticate against
88
- the ``admin`` database as user ``alice``:
87
+ To connect to a remote MongoDB instance and authenticate against
88
+ the ``admin`` database as user ``alice``:
89
89
90
- .. code-block:: sh
90
+ .. code-block:: sh
91
91
92
- mongosh "mongodb://mongodb0.example.com:28015" --username alice --authenticationDatabase admin
92
+ mongosh "mongodb://mongodb0.example.com:28015" --username alice --authenticationDatabase admin
93
93
94
- .. note::
94
+ .. note::
95
95
96
- To provide a password with the command instead of using the masked
97
- prompt, you can use the ``--password`` option.
96
+ To provide a password with the command instead of using the masked
97
+ prompt, you can use the ``--password`` option.
98
98
99
99
.. seealso::
100
100
You can’t perform that action at this time.
0 commit comments