Priority: Major - P3
Affects Version/s: 3.4.11
Fix Version/s: None
Documentation Changes Summary:If this is the new way to specify a DB and host, then the --help option on Mongo Shell 3.4.11 needs to be updated to reflect that fact.
It seems that the command line is transposing the host and db when using the host formats specified in the command line usage text:
I receive the following errors respectively when connecting using these formats to a valid host and DB.
Error: Database name cannot have reserved characters for mongodb:// URL: mongodb://foo:27017/192.168.0.5
Error: Database name cannot have reserved characters for mongodb:// URL: mongodb://foo:27017/192.168.0.5%3A9999
If I provide an incorrect host specification as
, then the shell will connect as normal.
mongo -u <user> -p <pass> foo/192.168.0.5:9999