Popular Posts

Tuesday, May 31, 2016

MongoDB tutorial with Java


MongoDB is the most popular No-SQL database. Lets try it out:

1) Install: 
Go to the MongoDb website and download latest release.

2) Run MongoDB:
First command prompt window:
C:\Program Files\MongoDB\Server\3.2\bin>mongod.exe --dbpath D:\mongo\data
Second command prompt window:
C:\Program Files\MongoDB\Server\3.2\bin>mongo.exe

2) Creating a Database: write insert queries
db.mytable.insert({
    first: 'amit',
    last: 'kumar',
    age: 25,
    dob: '21/04/1978',
    gender: 'm',
    occupation: 'developer',
    nationality: 'indian'
});
db.mytable.insert({
    first: 'sumit',
    last: 'singh',
    age: 34,
    dob: '26/03/1940',
    gender: 'm',
    occupation: 'engineer',
    nationality: 'american'
});

3) verify
db.mytable.find()


4) Download Robomongo
connect to database and see the records present there.


53 comments:

Maani kamili said...
This comment has been removed by a blog administrator.
Rajapriya R said...

useful blog to all

best java j2ee training | java training center in chennai | java training institute in chennai | java j2ee training center in chennai

Nancy 12 said...

I have read your blog its very attractive and impressive. I like it your blog. Java Training in Chennai

sunitha vishnu said...

This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
Android Training in Chennai
Ios Training in Chennai

Yasmin Priya said...

Hi, I am a big follower of your blog. Really very informative post you shared here. Keep sharing this type of informative blog. Waiting for your next update. If anyone wants to become a Java professional learn Java Training in Bangalore. Nowadays Java has tons of job opportunities for all professionals.

vignesjoseph said...

Thanks for mentioning a useful link to learn Java, I too like to suggest some useful links for your viewers. Java become the most trending web application front end tool where many companies looks for-
Selenium Training in Chennai
Java Training in Chennai

srihariparu said...

Hi, Really your post was very informative.


Web Designing Training Institute in Chennai | Dot Net Training Institute in Chennai
| Online Training Institute in Chennai

louis philip said...

This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...

Android App Development Company

john stany said...


I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
iOS App Development Company
iOS App Development Company

Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India

louis philip said...

Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
Fitness SMS
Fitness Text
Salon SMS
Salon Text
Investor Relation SMS
Investor Relation Text

isabella jacob said...

it is really amazing...thanks for sharing....provide more useful information...
Mobile app development company

louis philip said...

I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

Texting API
Text message marketing
Digital Mobile Marketing
Sms API
Sms marketing

little angels said...

Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.
Web Designing Training Institute in Chennai | DotNet Training Institute in Chennai | Java Training Institute in Chennai

deepti said...

Your blog helped me to understand the future and career prospects. Keep on updating your blog with such awesome article. Software Testing Course in Chennai | Selenium Course in Chennai | ISTQB Course in Chennai

Proplus Academy said...

Good day....

Excellent and new information..it will be useful to everyone


php training in coimbatore

seo training in coimbatore

web design training coimbatore

sunitha vishnu said...

Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
Android Training in Chennai
Ios Training in Chennai

ijazz jazz said...

Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!

java training in bangalore

rose said...

I wish to indicate because of you only to bail me out of this specific trouble.As a consequence of checking through the net and meeting systems that were not beneficial, I thought my life was finished.

selenium training in chennai|

Devops Training in Bangalore said...

The young boys ended up stimulated to read through them and now have unquestionably been having fun with these things"Oracle Training in Bangalore"

Adam lee said...
This comment has been removed by the author.
Adam lee said...

Nice Blog!

big data training in chennai

for IT the said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training India . Nowadays Java has tons of job opportunities on various vertical industry.

shalu said...

Hii. Great tutorial about technology. Nice blog! Enjoyed reading your blog!
Selenium Training in Chennai
Selenium Course in Chennai

ijazz jazz said...

Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

Java Training in Bangalore

ijazz jazz said...

Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

Java Training in Bangalore

giselle aga said...

My rather long internet look up has at the end of the day been compensated with pleasant insight to talk about with my family and friends.
http://www.traininginmarathahalli.in/core-java-training-in-bangalore/

Careen joseph said...

I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
Besant technologies Marathahalli

Paul Miller said...

Thanks for sharing this webpage. Interview questions on Java are really helpful.
Regards,
Oracle Training in Chennai | Oracle course in Chennai

Mathew Stephen said...

Thanks for sharing this post. It is really helpful.Continue sharing more about Java.
Regards,
Spring Training in Chennai | Hibernate Training in Chennai | Struts Training in Chennai

Inigo joseph said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site. rprogramming training in bangalore

zasi besant said...

Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!


Java Training in Chennai


Java Training in Bangalore


Java Training in Bangalore

suresh H said...


This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Best AngularJS Training in Chennai
Hadoop Training in Chennai
Big Data Training in Chennai

ASO Services said...

Good post and I like it very much. By the way, anybody try this increase app downloads? I do not how to use.

SINDUJA SINDHU said...

Good information, Thanks for sharing this valuable information, check it once through Android Online Training

Jordan Alexo said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…

Java training in Chennai||| J2ee training in Chennai

soumya Teja said...

Awesome content you have shared Android Online Training Hyderabad

Govind Raj said...

Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
PSD to Wordpress
wordpress website development

DAVIS MILLER said...

Your good knowledge and kindness in playing with all the pieces were
very useful. I don’t know what I would have done if I had not
encountered such a step like this.


java training in chennai


java Training in Bangalore

Jordan Alexo said...

It's interesting that many of the bloggers to helped clarify a few things for me as well as giving. Most of ideas can be nice content. The people to give them a good shake to get your point and across the command.
oracle training in chennai|| hadoop training in chennai

anudeep bichal said...

Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

java training in bangalore

john kevin said...

Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.


java training in bangalore

john kevin said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

Gowri S said...

I wish to show thanks to you just for bailing me out of this particular trouble.As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.
Big Data Training in Marathahalli

viji muru said...

I have read your blog its very attractive and impressive.
Cloud Computing Project Center in Chennai | Cloud Computing Project Center in Velachery

navya said...

Thanks for your informative article on projects. Your post helped me to understanding the future post.. VLSI Project Center in Chennai | VLSI Project Center in Velachery

Unknown said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
online rummy tournament

SachinVarshan said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
online rummy tournament

merlinmadonna said...

Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
oracle training in chennai|| hadoop training in chennai

Jordan Alexo said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
Regards,
hadoop training in chennai || selenium training in chennai




SachinVarshan said...

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
aws training in Chennai

Orange Nithi said...

The information you shared is very effective for learners.

Visit for a real time training for Java Training in Chennai | Best Java Training Institute in Chennai | Java Master Program Training in Chennai

Orange Nithi said...
This comment has been removed by the author.