Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
Any, linux ubuntu
*Location*: https://docs.mongodb.com/manual/reference/method/db.copyDatabase/#example-copydatabase-from-2-6
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0
*Referrer*: https://docs.mongodb.com/manual/reference/method/db.copyDatabase/
*Screen Resolution*: 1360 x 768
Any, linux ubuntu *Location*: https://docs.mongodb.com/manual/reference/method/db.copyDatabase/#example-copydatabase-from-2-6 *User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0 *Referrer*: https://docs.mongodb.com/manual/reference/method/db.copyDatabase/ *Screen Resolution*: 1360 x 768
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