How can I connect to a remote mongo server from a mac terminal?
I would like to use the mongo shell on my MacBook.I'm interested in connecting to a Mongo instance that is running in the cloud.I have the name, password, host, port, and database name.
I have installed mongodb on my MacBook in order to get access to the mongo shell program so that I can connect to a remote database.
I need the right command to get the full shell access I want.I am able to get what looks like a connection, but without giving my password, I'm not fully connected.I still get an "unauthorized" error message when issuing the show dbs command, even though I give incorrect usernames and passwords.
If you don't have admin privileges to the database, you cannot run the show.