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.

Related Posts:

  1. How to stop pushing mongo is fast and easy.
  2. How long does a MacBook pro last on average?
  3. Is it worth spending money on MacBook?
  4. How to stop a Cockapoos from barking.