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

Allow admin user to login to any database

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • Labels:
      None

      Currently, in the shell if you created an admin user you need to login to the admin database first and then change databases.

      For example, this fails for an admin account:

      mongo -u test -p test localhost:27017/test

      This succeeds for an admin account:

      mongo -u test -p test localhost:27017/admin

      MySQL will let you connect to any database from the shell (with auth). This becomes an issue when you'are executing scripts from the shell. Currently, you have to login to admin and then issue a change database.

      This will/is confusing for users.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rn@deftlabs.com Ryan Nitz
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: