Reputation: 13721
I am trying to set up my database on Mongolab/Heroku. According tot he Mongolab documentation, I should type:
% mongo ds012345.mongolab.com:56789/dbname -u db_username -p pw!
However, I am running into two issues:
1) I know where to get the dbname and db_username, but where do I get the pw? Is it the same pw as what I use to log into Heroku?
2) If i type in the command above, I get an error -bash: mongo: command not found
Can someone help?
Thanks!!!!
Upvotes: 0
Views: 132
Reputation: 494
1) When you create a MongoLab add-on, it adds a MONGOLAB_URI
environment variable to your Heroku app. More details here:
https://devcenter.heroku.com/articles/mongolab#getting-your-connection-uri
2) mongo
refers to the mongo shell binary, which you'll need to install locally. It, along with all the other MongoDB binaries, can be downloaded here:
https://www.mongodb.org/downloads
Upvotes: 2