简体   繁体   English

无法使用密码哈希连接到MongoDB

[英]Unable to connect to MongoDB using password hash

My question is similar to this one insofar as I am trying to make a mongo shell connection to database that Heroku auto-provisioned on MongoHQ (Now called Compose): Unable to connect to mongohq at heroku using shell 我的问题与这一问题类似,因为我正尝试建立 Mongo Shell连接到Heroku在MongoHQ上自动配置的数据库 (现在称为Compose): 无法使用Shell连接到heroku上的mongohq

The only details that I have about this database are from the Heroku Environment Variable: 关于此数据库的唯一详细信息来自Heroku环境变量:

MONGOHQ_URL

mongodb://heroku:yQso1cKxxxxob0RVaUy_mLN_sO0hPloxxxxxxAmEs-g@flame.mongohq.com:27066/app5xxx6

It would seem that the 'big long string' part is a username / password hash... 似乎“大长字符串”部分是用户名/密码哈希...

How can I use the above connection string to make a mongo shell connection to the database? 如何使用上述连接字符串与数据库建立mongo shell连接

Is there a way, through Heroku. 有没有办法,通过Heroku。 MongoHQ to get the actual username and password? MongoHQ获取实际的用户名和密码? I don't have a MongoHQ account, only a Heroku account. 我没有MongoHQ帐户,只有Heroku帐户。

This seems to be a misunderstanding. 这似乎是一种误解。 There is no hashing going on. 没有哈希进行。

The user name is "heroku" 用户名是“ heroku”

And the password is - ' the big long string ' 密码是-“ 大长字符串

So the solution is: 所以解决方案是:

mongodb flame.mongohq.com:27066/app5xxx6 -u heroku -p o95y8unw74bxYWM_THE_BIG-LONG-STRING

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM