当使用下面的命令时
mongo --username admin_user --password passw#ord^s --authenticationDatabase admin
我收到错误“”解析命令行时出错:选项“--username”多次出现。 Mongo shell 版本 3.0.12。谁能告诉我这里出了什么问题?
最佳答案
好的。我设法找到了问题所在。由于某种原因,当前用户似乎没有正确使用 mongo shell 的权限。当我在开头添加“sudo”时,它工作正常。
关于mongodb - Mongo shell 给出错误 "Multiple occurrences of option",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37874966/