Skip to content

Instantly share code, notes, and snippets.

@mattfenwick
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save mattfenwick/ddb7a2e037ad7c03d120 to your computer and use it in GitHub Desktop.

Select an option

Save mattfenwick/ddb7a2e037ad7c03d120 to your computer and use it in GitHub Desktop.
notes on mongodb

Starting mongo

  • may need to create the /data/db folder
  • run mongod or service mongod start to get it started
    • may need to sudo those so that it gets permissions
  • run mongo to get into an interactive shell

From (Python|Javascript|etc.)

install pymongo somehow

$ ???

use pymongo from python:

import pymongo

conn = pymongo.MongoClient() # defaults to local db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment