Skip to main content

MongoDB

MongoDB is a document oriented Database and it is written in C++.Because of its cross platform it is widely used in industries.At the same time its performance,scalability and availability also high.
MongoDb is a NoSQL database.

Advantages of MongoDB
1.Number of fields and size can differ from documents.
2.Deep query ability
3.No complex joins.......
Where it is used
1.App relational database
2.Data hub
3.Huge data management.
4.Social infrastructure.


After install the MongoDB in your laptop.You can carry out your tasks as you want.
So our next question is where we have our works in laptops?Our works will be in terminal(ubuntu),command prompt(windows).Yes when pay our view towards terminal face works.

In terminal there are two main steps to do our mongoDB works
1.sudo mongod
2.sudo mongo
actually here we start the server and client side respectively.So why we used sudo here.sudo means it detect the whole laptop and find out and start ,no need to start the work on terminal from exact position.

Now we ready to do our works.
1)So now we have to create a database.
2)To see the database in my laptops











3)To find out at what database currently i do my work

4)To delete the database which i have created
(before this we find out the current position so we can drop the database as follows it means it drop the current DB if you want to drop any other, than current you can switched in to it as use databasename and enter db to find location and drop)



5)To create a collection in to the database.



6)To drop my collection
<db.songsdetails.drop()
7)To see my all my collection
<show collections
continue...

















































































Comments

Popular posts from this blog

ER Diagram

ER is a high level conceptual data base diagram.ER modeling helps us to create well designed data base with systematic analyzement. Thats why it is very important to practice er diagram before create a database. Actually ER Diagram explains the logical structure of database.Even though ER diagram is similar to the flowchart it become unique because of its symbols and conceptual based exposes.

Node.js MongoDB

Now a days all web based application has some database to store the data at the back end. Nodejs frame work have the ability to work with both relational and non relational database. Node.js  MongoDB   NoSQL database mongodb quite fame because of its ability to store the any sort of data at any format.In order work we have to download required module.Mongodb required the module to be installed is mongoose.And also with these modules we can perform many operations.Before that we have to get start mongodb in nodejs. 1.Install MongoDB Driver * We can download from official mongodb driver or open in terminal and execute it     npm install mongodb * Node.js used this module to manipulate mongodb database.   var  mongo = require( 'mongodb' ); 2.Node.js  MongoDB  Create Database To create a database: 1.Create the Mongoclient object 2.Specify the url connection (correct ip address and name of the database want...

GIT HUB

Git hub is a web based hosting service for version control using git.Git hub is a project based management system.It is a good platform for the developers.Git hub is a SCM(Source Code Management. Now we can go through the git hub installing and coding. 1) Installing a git hub in a Linux (in Linux all coding are followed in terminal)         sudo apt-get install git 2)Configuring git hub    When we completed our installing after that we should have to configure our account as follows          get config -- global user.name "user name"           get config -- global user.email "email id"   once we configured our account no need to configure each time. Mainly seven steps are available to push the files in to git hub 1)git<>init 2)git<>add<>./* 3)git<>status 4)git<>commit<>-m<>detail 5)git<>remote<>add<>origin...