Difference between revisions of "Mongodb"
From Wiki2
Line 4: | Line 4: | ||
where is mongo? | where is mongo? | ||
tim@TIM-HP ~ | |||
$ mongo | |||
MongoDB shell version: 2.4. | MongoDB shell version: 2.4.8 | ||
connecting to: | connecting to: test | ||
> show dbs | > show dbs | ||
local 0. | angular-directory-db 0.203125GB | ||
local 0.078125GB | |||
> use | test 0.203125GB | ||
switched to db | > use angular-directory-db | ||
switched to db angular-directory-db | |||
> show collections | |||
employees | |||
system.indexes | |||
> db.employees.find().pretty() | |||
Revision as of 13:47, 14 January 2014
basic mongo
from https://www.openshift.com/blogs/day-15-meteor-building-a-web-app-from-scratch-in-meteor
where is mongo?
tim@TIM-HP ~ $ mongo MongoDB shell version: 2.4.8 connecting to: test > show dbs angular-directory-db 0.203125GB local 0.078125GB test 0.203125GB > use angular-directory-db switched to db angular-directory-db > show collections employees system.indexes > db.employees.find().pretty()
installing-mongodb-on-windows-the-wamp-way
on parleyV12
https://www.digitalocean.com/community/articles/how-to-install-mongodb-on-ubuntu-12-04
sudo service mongodb start
The MongoDB instance stores its data files in the /var/lib/mongodb and its log files in /var/log/mongodb/mongodb.log