我正在尝试mongodump local / oplog.rs,但控制台返回错误
这是我的命令
mongodump --uri "mongodb+srv://acc:pass@cluster0-pdpwa.mongodb.net/local" -c oplog.rs -o ./local_oplog
用户角色:dbAdmin>本地
Failed: error getting collection options: error running `listCollections`. Database: `local` Err: user is not allowed to do action [listCollections] on [local.]
用户角色:readWriteAnyDatabase
Failed: error dumping metadata: error running `listIndexes`. Collection: `local.oplog.rs` Err: not authorized on local to execute command { listIndexes: "oplog.rs", cursor: { } }