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

Allow admin user to login to any database

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Admin
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: