Created
September 12, 2014 18:18
-
-
Save aheckmann/2647d4afe7d0bb760e49 to your computer and use it in GitHub Desktop.
connect to compose.io replset with mongo shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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