MongoDB
To start mongodb in fedora :
->service mongod start
->systemctl start mongod.service
->mongo
Output:
MongoDB shell version: 2.4.6
connecting to: test
To see all databases :
> show dbs;
output:
> show dbs
local 0.078125GB
neha 0.203125GB
sunny 0.203125GB
vishakha 0.203125GB
>
Create collections:
> db.createCollection("mycollection")
output:
{ "ok" : 1 }
Comments
Post a Comment