mongodb - 未经授权将集合导出为 excel 文件
问题描述
我正在尝试将集合导出为 excel。但是当我访问 mongo shell 并运行以下命令时,我得到了这个错误。
> use test_DB
> db.getUsers()
[ ]
root@serverip:~# mongoexport --db test_DB -c users --out /home/developer/newdbexport.json
Failed: error running `listCollections`. Database: `test_DB` Err: command listCollections requires authentication
有什么建议吗?提前致谢
解决方案
推荐阅读
- python - numba.jit 将函数和签名作为输入
- python-3.x - Kivy 使用两个文件 .kv
- javascript - Chrome 在控制台中使用 getElementById() 时返回 null 直到我检查一个元素?
- coq - Coq 中的依赖函数
- c# - 什么是 LogHelp_TerminateOnAssert?
- c# - 对空条目使用 DataTable.Compute 过滤器
- r - 如何为大型数据集矢量化 R 中的 for 循环
- log4net - 如何使用 Common.Logging.Log4Net.Universal 而不是 Common.Logging.Log4Net208
- c# - aspnet_compiler 在 windows 2019 服务器上不工作,但在 windows 10 pro 上工作
- python - 从 S3 存储桶提供静态文件不起作用?