Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manage Nodejitsu created MongoDB

I've created a new MongoDB using the command:

jitsu databases create mongodb my_datbase

Now I'm not sure how to manage this newly created database. When I try to use the given details in my app, I end up with "An error has occurred: {"code":"ECONNRESET"}".

How do I check the db is running ok?

like image 449
Stuart Memo Avatar asked Feb 20 '23 16:02

Stuart Memo


1 Answers

You should have received a url from jitsu that looked something like

mongodb://username:[email protected]:port/database

You can pass this information into pretty much any mongodb connection tool, though usually not as a raw connection string (mongoose is an exception). For example, with the mongo cli client:

mongo somehost.mongohq.com:port/database -u usernamd -p password

and there you go!

like image 128
Josh Holbrook Avatar answered Feb 27 '23 18:02

Josh Holbrook