Skip to content

Instantly share code, notes, and snippets.

@rick4470
Created March 30, 2017 22:09
Show Gist options
  • Select an option

  • Save rick4470/e4f9a7b790933e00a6f6eda416636439 to your computer and use it in GitHub Desktop.

Select an option

Save rick4470/e4f9a7b790933e00a6f6eda416636439 to your computer and use it in GitHub Desktop.
How to login with credentials to MongoDB 2.6?
mongo --port 27017 -u "username" -p "STRONG PASSWORD GENERATED" --authenticationDatabase "admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment