-
Type:
Improvement
-
Status: Closed
-
Priority:
Major - P3
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Shell
-
Labels:None
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.
- 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
-