How to manage Nodejitsu created MongoDB

I 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 data in my application, I get the message "An error has occurred: {" code ":" ECONNRESET "}".

How to check db is working fine?

+4
source share
1 answer

You should have got a jitsu url that looked something like

 mongodb://username: password@somehost.mongohq.com :port/database 

You can pass this information to almost any mongodb connection tool, although this is usually not like 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!

+8
source

All Articles