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

How can I specify a host and path to connect to Mongo hosted on a remote server?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      My mongo DB is hosted a remote server is I try to connect like this:

      mongo -u user -p password --host my.host.net/mongo

      the client thinks that mongo is my DB when in fact is the path.

      How can I specify a different path from root?

      Attachments

        Activity

          People

            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            simiolabs Daniel Montero
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: