Last Updated: February 25, 2016
·
24.85K
· niklongstone

How to connect to remote mongo database with the mongo cli

First you must have the mongo cli installed in your system (https://docs.mongodb.org/manual/installation/).

Then from the terminal you can run:

mongo someurl.mongodomain.com:45475/database_name -u username -p password