Setting up mongo database locally - mongodb

I have a site hosted up on Heroku (a nodejs app), which is connected to my Mongo database. I was wondering if I can just set up a local mongo database rather than just connecting to the database (with the connection uri) everytime, just like SQL.
Is this possible?

if your question is "can I setup a local mongo database", the answer appears to be yes, this is the first link that pops up when you type it into google :
https://docs.mongodb.com/guides/server/install/

here is instruction on setting up mongo on Mac or Windows.
https://zellwk.com/blog/local-mongodb/.

Related

How to choose MongoDB Connect to Cluster option?

I'm new to MongoDB and I'm having some problems with MongoDB recently.
I'm not sure about Connect with the MongoDB Shell, Connect your application, Connect using MongoDB Compass, what's the difference?
The current demand is. I want to directly allow connection from anywhere and create a user account password to log into this database, which option should I choose?
https://i.stack.imgur.com/iwYMf.png
In Connect your application tab, you get a link that you need to copy
and paste in your application you are building to connect it to the
database. Remember to replace your password and databse name.
In Connect using MongoDB Compass tab, you get a link that you need
to paste in your compass application(A desktop application that
makes your mongodb data handling so much easier). And again remember to replace
your credentials.
I'm not very fond of Mongodb shell. It's actually an extensible
command-line interface.

Discover MongoDB Database Hostname on Heroku

I need to connect to a MongoDB (Heroku) database through Pentaho, but I can't find the HostName anywhere. Does anyone know where I can find out?
I haven't worked with Heroku, but probably you'll have a configuration panel somewhere with the data to connect to the database, I would ask on Heroku about it.
This link is not directly related, but explains how to add to Heroku a Config Var with the URI of the MongoDB connection to an Atlas MongoDB database, probably you'll have something similar: https://www.mongodb.com/developer/products/atlas/use-atlas-on-heroku/

Connect external mongodb with private key ( file.pem ) and user without mongo_url

Hello I’m new Meteor !!!
I have only private key (file.pem), user, ip:port
I don’t know how to connect with meteor run on local machine
First try to connect with some local client, terminal or robomongo. After you managed to do that, you can look into ways to connect your meteor application to external mongodb.
Also since meteor coming with its own bundled mongo, you should install mongodb in your system and connect your meteor app to this one mongo first.

Connect to Database directly via Mongo Compass

Via shell, I can directly connect to mongo database with this string
mongo --ssl host1,host2:port/MyDataBase...
And I land directly on the MyDataBase.
Is there a similar way to do it in Compass? I get connected to whole server and I can see all the other databases. I just want to connect to MyDataBase.
I am using the lattest version of Compass, so it may differ from your current version.
It is important the you are in the network of the server, or use a VPN connection, otherwise, it does not work.
Step 1
Step 2
Please,let me know if that works!

Connection to CloudBees database using MySQL Workbench

I've just uploaded my locally developed app to CloudBees. It works fine: I can load the web pages and it can access the database.
However, I cannot connect to its database (also provided by CloudBees) using MySQL Workbench or the command line tool. It always says
Can't connect to MySQL server on 'ec2-50-19-213-178.compute-1.amazonaws.com' (10060)
Any CloudBees configuration that I might be missing?
double check your database connection parameters using SDK : bees db:info -p <databasename>
you should be able to connect to DB using mysql workbench and other mysql tools.
In the MySQL forum exists a collection of links for various types of connections using MySQL Workbench. One is probably especially interesting for you as it deals with Amazon RDS databases. Among others it shows what connection parameters are needed.
Seems that there were some firewall problems in the corporate router that prevented me from connecting before. I tried at home and it worked.