Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8846

Comment on: "manual/reference/method/db.copyDatabase.txt"

    XMLWordPrintableJSON

Details

    Description

      Hi,
      "admin" database is for authentication in SHA1 mechanism..(for the DBA user) therefore this example does not work if we use SHA1 mechanism...

      db.copyDatabase(
      "admin", //fromdb ..authenticationDatabase is "admin"
      "reporting_copy", //todb "reporting_copy"
      "example.net", //fromhost
      "alex", //user has administrative priviledges/roles in "admin" database on example.net:27017
      "abc123", //password
      "SCRAM-SHA-1" //mechanism
      )

      My point is that the DBA user... uses "authenticationDatabase" = "admin". not "reporting".

      suggestion:

      db.copyDatabase(fromdb, todb, fromhost, username, password, mechanism, authenticationDatabase)

      thank you,
      Alex Jimenez

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago