Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6233

Support MongoDB URIs as mongo shell argument

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 2.7.4
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Build A (10/09/15), Build B (10/30/15)

      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

      Original description was:
      The shell appears not to be able to take mongodb:// urls as elements of argv.
      The shell appears not to be able to connect to a replica set specified as <rsname>/host1[:port1][,host2:[:port2]...] as elements of argv. Either of these would be nice, but if we do just one, the first is better than the second, as the double-slashes in the URL are already an error for the shell's idiosyncratic connection syntax.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: