[DOCS-13503] Add more mongo connection examples Created: 10/Mar/20  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: James Phelan (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Description

In our docs page for the mongo client:
https://docs.mongodb.com/manual/reference/program/mongo/#syntax

We have a couple of examples for connecting with various options. It would be a good idea to add some more examples for more complex connection strings for example:

Kerberos Authentication

mongo 'mongodb://user%40EXAMPLE.COM@mongodb1.example.com.local:27017,mongodb2.example.com.local:27017,mongodb2.example.com.local:27017/?authSource=$external&authMechanism=GSSAPI&replicaSet=replA'

Special Character in the password

mongo 'mongodb:/user1:changeme%40123@mongodb1.example.com.local:27017,mongodb2.example.com.local:27017,mongodb2.example.com.local:27017/?authSource=admin&replicaSet=replA'

The same location in the docs also contains double quotes around all URI's the examples all work across platforms. But this can cause problems if there are (non-encoded) special characters in the URI. For *nix and Windows Powershell you should use single quotes and double quotes for the Windows CMD prompt. It might be a good idea to add this clarification also.

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:07:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.