My app is deployed with mupx (credentials user and password) to DigitalOcean.
I was wondering how can i access the dbs and collections on that ubuntu server?
My app is deployed with mupx (credentials user and password) to DigitalOcean.
I was wondering how can i access the dbs and collections on that ubuntu server?
Use MongoChef (via Tab âSSH Tunnelâ or Robomongo to connect from your local Laptop to the database, or connect via CLI on the server (command mongo - then "use " and âshow collectionsâ)
I tried with Robomongo and Mongoclient many times and i wonât connect either to localhost or to deployed database, tried so many times and no luck.
Now i managed to connect via terminat ssh user@x.x.x.x , i did mongo, and it connected to the âtestâ database.
I would still like to know why i canât connect via Robomongo or any other GUI :-/
Assuming your mongo is running at :27017, you can do this:
ssh -L 4001:localhost:27017 root@yourdomain.com
And then in robomongo, just connect to localhost:4001.
Iâve been down this rabbithole too many times to recommend trying anything elseâŚ
For me it is working (to DO server) via Mongochef:
Tab âServerâ localhost:27017
Tab âSSh Tunnelâ Check âuse SSH Tunnel to connectâ, SSH Adress: Server Address, SSH User Name: your linux user (ie root), SSH Auth Mode: password, SSh Password (i.e. root password)
Thank you Thank you Thank you!
It works for me too!
Now i can finally âseeâ the databases like a human being