Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1940

Print warning when the user specifies a database but no host on the command line

    • 2
    • Developer Tools

      A user might type something like mongosh localhost and reasonably expect it to connect to localhost as the hostname, rather than the localhost database on 127.0.0.1:27017. We've inherited this behavior from the legacy shell, but it is definitely confusing and trips up even expert users of mongosh, so it seems like a good idea to print a warning when the user specifies only a database name but no hostname.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: