Skip to content

Commit 9bc577f

Browse files
salixrosajdestefano-mongo
authored andcommitted
Update db.auth.txt w/ needed shell flag
One cannot authenticate into the MongoDB shell ( at least in version 3.6.0 ) w/o specifying the authentication database. Following the format of the other flags mentioned here, one can use the --authenticationDatabase flag.
1 parent ba33cab commit 9bc577f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/reference/method/db.auth.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ Definition
4242
.. include:: /includes/apiargs/method-db.auth-param.rst
4343

4444
Alternatively, you can use :option:`mongo --username`,
45-
:option:`--password <mongo --password>`, and
45+
:option:`--password <mongo --password>`,
46+
:option:`--authenticationDatabase <mongo --authenticationDatabase>`, and
4647
:option:`--authenticationMechanism <mongo --authenticationMechanism>`
4748
to specify authentication credentials.
4849

0 commit comments

Comments
 (0)