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

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...

Toast master

Commonly Toastmaster means that a person who take the certain event in proceedings.But it was intiated by US youths to improve their communication skills.Main purpose of this is to improve their communication,leadership and forwardness.Toastmasters uses a club based structure having 20 to 40 members.Mostly meetings are held in the evening.Toastmaster carry out the meeting and call the person to intro.Anually world champion of public speaking is held on august.Since it was intiated by youths in a small level,now it was followed by million of people. Here toast master asked to introduced themself.Table topic master,Round robin master,Timer,Ah counter,Grammarian,Evaluator introduced themself.

Node Authentication

Authentication mean that identify users and provision of access of rights and contents depending on their ID.Node authentication is the technique used to ensure that the managing server and data collectors communicate with each other in a secure manner.Authentication can be categorized as follows 1.Session based 2.Token based 3.Password less What is session based authentication? User credentials such as user name or email and password are compared with the database where this data was stored.If they match, a session is initialized for the user with the fetched ID.