kwd66a
Last Updated: February 25, 2016
·
20.84K
· 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