Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-104

Can not restore users to another database using mongorestore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: Legacy C++ Implementation, 3.6.2
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:

      Description

      1. Run mongodump -d TEST1 --dumpDbUsersAndRoles to dump data and users from database TEST1
      2. Run mongorestore -d TEST2 --restoreDbUsersAndRoles dump/TEST1/ to restore data and users to another database TEST2.
        Data will be restored to database TEST2, but the users will be restored to database TEST1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              linda.qin Linda Qin
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated: