Mongodb

From John Freier
Jump to: navigation, search

Description

MongoDB is a document JSON database.


Start Up - Command

To start mongodb for development or other

 mongod --dbpath /home/test/mongo


Start Up - Service

To start the mongo database up as a service

 service mongod start

To edit the config for mongo service look here.

 /etc/mongod.conf


To connect to a MongoDB

To connect to an existing mongodb

 mongo localhost:27017