Skip to content

Instantly share code, notes, and snippets.

@aheckmann
Created September 12, 2014 18:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheckmann/2647d4afe7d0bb760e49 to your computer and use it in GitHub Desktop.
Save aheckmann/2647d4afe7d0bb760e49 to your computer and use it in GitHub Desktop.
connect to compose.io replset with mongo shell
mongo -u USERNAME -p PASSWORD --host "REPLICA_SET_NAME/HOST:PORT" --authenticationDatabase DB_NAME
# after connected, you'll need to change the database
// db = db.getSiblingDB(DB_NAME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment