Search code examples
node.jsmongodbnodejitsu

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?


Solution

  • 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!