首页 > 解决方案 > 次要阅读偏好

问题描述

我正在尝试在 Digital Ocean ubuntu 服务器中执行 mongodump。我收到以下错误。

root@Project:~# sudo mongodump --db <database>  --out  /root/backup/Localdb

2018-11-07T06:28:09.177+0000    Failed: error getting collections for database `<database>`: error running `listCollections`. Database: `<database>` Err: not authorized on `<database>` to execute command { listCollections: 1, cursor: {}, $readPreference: { mode: "secondaryPreferred" }, $db: `<database>` }

如何解决这个问题。

谢谢。

标签: digital-oceanmongodump

解决方案


推荐阅读