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

Can not restore users to another database using mongorestore

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: Legacy C++ Implementation, 3.6.2
    • Component/s: mongorestore
    • Platforms 2017-01-23
    • 2
    • 1,876

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: