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
Written by Nicola Pietroluongo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#