mongodb - 将 mongo 连接到 mlab 时出现问题(登录失败)
问题描述
我尝试将 mongo 连接到 mlab,但收到此错误:https ://imgur.com/a/mjN2lbe
$ ./bin/mongo.exe mongo ds*****.mlab.com:****/**** -u <username> -p
MongoDB shell version v3.6.4
Enter password:
connecting to: mongodb://127.0.0.1:27017/mongo
MongoDB server version: 3.6.4
2018-04-30T21:59:20.446+0700 E QUERY [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow@src/mongo/shell/db.js:1608:20
@(auth):6:1
@(auth):1:2
exception: login failed
我已经在 mlab 数据库上创建了这样的用户:https ://imgur.com/a/mjN2lbe但它仍然不起作用。我 100% 确定我没有输入错误的用户名或密码
解决方案
推荐阅读
- bash - 如何使用 bash 将 pdf 转换为 png 文件?
- javascript - babel-loader 仅用于将 es6 转换为 es5?
- r - 合并两个数据框
- postgresql - 我应该使用哪个 JDBC 驱动程序版本来访问 PostgreSQL 9.5?
- python - 导入tensorflow时出错;说缺少几个模块
- javascript - 从具有指定颜色的列表中选择两个元素作为左右元素
- jenkins - 如何在 jenkins 中开始使用电子邮件身份验证进行部署?
- php - 相当于 php 中的 Curl -k 选项
- linux - 仅将旧文件移动到另一个目录
- sql - 如何找到滚动的 3 个月方差?