[DOCS-8846] Comment on: "manual/reference/method/db.copyDatabase.txt" Created: 21/Sep/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 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



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:57:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.