Mongo Copy Collection and User Permissions
问题 I am trying to copy a collection through the shell, but I am getting an 'unauthorized' error, despite having read/write permissions. Specifically: db.createCollection("ITISAFAKE") { "ok" : 1 } db.ITISAFAKE.insert({"Is it a fake?": true}) db.ITISAFAKE.find() { "_id" : ObjectId("52d5e51d4bb0851f985f69d8"), "Is it a fake?" : true } db.ITISAFAKE.drop() true Yay that works fine. However: db.createCollection("FAKE") { "ok" : 1 } db.FAKE.insert({senator: true}) db.FAKE.copyTo("FAKERY") Tue Jan 14 17