File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/cosmos-db/mongodb Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ MongoClient client = new MongoClient(uri);
129
129
mongosh --authenticationDatabase <YOUR_DB> --authenticationMechanism SCRAM-SHA-256 "mongodb://<YOUR_USERNAME>:<YOUR_PASSWORD>@<YOUR_HOST>:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000"
130
130
```
131
131
132
- ## Authenticate using MongoDB Compass or Azure Data Studio
132
+ ## Authenticate using MongoDB Compass/ Azure Data Studio
133
133
``` bash
134
- connectionString = " mongodb://" + " <YOUR_USER>" + " :" + " <YOUR_PASSWORD>" + " @" + " <YOUR_HOSTNAME>" + " :10255/" + " <YOUR_DATABASE> " + " ?ssl=true&retrywrites=false&replicaSet=globaldb&authmechanism=SCRAM-SHA-256&appname=@" + " <YOUR appName FROM CONNECTION STRING IN AZURE PORTAL>" + " @"
134
+ connectionString = " mongodb://" + " <YOUR_USER>" + " :" + " <YOUR_PASSWORD>" + " @" + " <YOUR_HOSTNAME>" + " :10255/" + " ?ssl=true&retrywrites=false&replicaSet=globaldb&authmechanism=SCRAM-SHA-256&appname=@" + " <YOUR appName FROM CONNECTION STRING IN AZURE PORTAL>" + " @"
135
135
+" &authSource=" +" <YOUR_DATABASE>" ;
136
136
```
137
137
You can’t perform that action at this time.
0 commit comments