I manage connection to mongodb in mongolab. But today, I can't find the option to add a new remote connection. There's only option to create mongodb deployments in their own environment.
How can I add new remote connections?
Thanks
Related
I've removed localhost in network connections from a MongoDB Atlas project.
Now my mongo shell can't connect to the MongoDB collection. Other than adding localhost back to network connections, is there any other way to connect to a MongoDB collection? I'd like to poke around the production database sometimes from the CLI, is this possible?
You can use VPC peering to connect.
I try to connect with MongoDB Compass via ssh tunnel.
It worked before but now when I do it, it always connects to my local MongoDB instance instead of my remote one. Please have a look at the pictures below which show my settings. pretty sure it was also before like this but somehow now it connect to the wrong DB. When I connect manually via ssh (using exactly those credentials) I can see that the data is different.
What am I missing here?
connection
connection2
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!
I cant connect to mongoDB atlas using my app or even compass, I receive that error
connection 11 to cluster0-shard-00-02-uypd6.mongodb.net:27017 closed
That is the first time I try to connect from this local, maybe a LAN problem? at house everthing connects fine
Please add IP in you Mongo Security list to allow your IP to access Mongo.
Help :)
I have a expressjs applications deployed on EC2 VMs and use a Mongo DB in separate VM, and I am trying to find which VMs currently have open connections to the Mongo DB.
Is there away (or interface) to list the IP addresses of the currently opened MongoDB Connections ?
Thanks!
According to https://jira.mongodb.org/browse/SERVER-5085 the one method is:
db.currentOp(true)