[SERVER-3300] MongoURI support for connecting to a db via the shell Created: 20/Jun/11 Updated: 15/Jun/15 Resolved: 15/Jun/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Ryan Nitz | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 10 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
It would be more consistent with the drivers if the shell supported URIs, in addition to --host replSetName/seed-list format it already supports. E.g. mongo mongodb://test:test@127.0.0.1:27017/test |
| Comments |
| Comment by Ramon Fernandez Marina [ 15/Jun/15 ] | ||||||||||||||||||||
|
Duplicate of | ||||||||||||||||||||
| Comment by Asya Kamsky [ 25/Jul/14 ] | ||||||||||||||||||||
|
Currently (in all recent versions) the shell does support connecting to a replica set: mongo --host replSetName/seed-list This ticket is for shell to support the more standard URI option as the host format is not aligned with format all the drivers use/understand. | ||||||||||||||||||||
| Comment by Jon Stevens [ 24/Apr/13 ] | ||||||||||||||||||||
|
Yes, it would be amazing to be able to just copy/paste a basic uri per the original posters description. | ||||||||||||||||||||
| Comment by Jacques Crocker [ 13/Dec/11 ] | ||||||||||||||||||||
|
a --uri option would be AMAZING | ||||||||||||||||||||
| Comment by Ryan Nitz [ 20/Jun/11 ] | ||||||||||||||||||||
|
Btw - right now here is what I get if if run this:
|