I am trying to clone a remotely hosted collection into my local Mongo database. I tried to open the mongo console in a local environment and issued:
db.runCommand({cloneCollection: "<dbname.colname>", from: "<remotehost:port>"})
Unable to complete
"errmsg" : "exception: nextSafe(): { $err: \"not authorized for query on <dbname>.system.namespaces\", code: 16550 }", "code" : 13106,
How to properly allow a remote server to clone a collection?
mongodb
thameera
source share