Pages

Sunday, May 26, 2013

MongoDB: Setting up and basic operations

Lets talk about some starting points of the mongoDB..
First..installation is easy as easiest:
>Just go to the Mongo site and download the whichever package is needed for your system. Though it is recommended to work with th 64 bit version for production ..fear not you can do with any package that suits your system..remember...the version with the even no. in the middle means the stable release for the time.

> Now extract the compressed filed and create a folder in a location of your choice. In the uncompressed folder..there will be bin folder..copy all its content to the folder you just created...And there it is the starting point for working on  mongodb.

> When you have done all the above ...just open the command shell and go to the directory and type mongod...the mongo shell daemon. and it will start the mongo server.
> You can type db( It is the command which you will use in every operation for it starting point for every command). This will print test...which is the default collection every mongo shell contains for the first time.
...Now you can open another command shell and type mongo ...this will start shell  where you can start doing your work for all operations...

                      Way to goo....

No comments:

Post a Comment

 

Blogroll

About