使用以下命令
mongo --username admin_user --password passw#ord^s --authenticationDatabase admin
我得到错误"错误解析命令行:选项的多个出现" - username"。Mongo Shell 3.0.12的版本。有人可以告诉我这里怎么了吗?
好。我设法找到了这个问题。由于某种原因,目前的用户似乎没有权限蒙戈外壳。当我在开始时添加" sudo"时,它效果很好。