Uses the C Authentication plugin. If you are using a MySQL
option file, specify the following configuration to use the
mongosql_auth plugin:
[client]
default-auth=mongosql_auth
Note
To use an option file with an
ODBC DSN, add the
USE_MYCNF=1 connection parameter to the
DSN.
--user
<your-username>
Possible parameters to this option are
source=<authenticated-db> and
mechanism=<auth-mechanism>. If no authenticated database
is specified, it defaults to admin. If no authentication
mechanism is specified, it defaults to SCRAM-SHA-1.
Note
If you use both the source and mechanism parameters,
separate them with a & and enclose the entire option in
single quotes. For example: