Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
Description
Currently a script or something like:
mongo --host `mongo 127.0.0.1:27019 --quiet --eval "db.isMaster()['primary']"`
is needed.
An option, such as --primary, would be preferable.
Attachments
Issue Links
- duplicates
-
SERVER-3300 MongoURI support for connecting to a db via the shell
-
- Closed
-
- related to
-
DOCS-3824 Document that 'mongo --host' can take a replica set string
-
- Closed
-