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