Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created February 1, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/aa748cf2008d379489fd to your computer and use it in GitHub Desktop.
Save niraj-shah/aa748cf2008d379489fd to your computer and use it in GitHub Desktop.
MongoDB Commands
# Start MongoDB Shell
mongo
# Get MongoDB version
mongo --version
# Show Mongo Databases (from MongoDB Shell)
show dbs
# Create DB `parse` and Insert Data to `users` collection
use parse
db.users.insert({"name":"Niraj Shah"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment