首页 > 数据库技术 > 详细

【MongoDB】Serveral common command of MongoDb

时间:2014-09-19 02:20:04      阅读:426      评论:0      收藏:0      [点我收藏+]

In the recent days, since the overwork made me exhaused, on arrival to home I will go to bed, which leads to loss of blogs that should have been written in the past days. 

Now  I make a summay to all the commond of operating mongoDB.

First, you should run the mongoDB server. if the following picture exists, it means you has run the mongoDB successfully. 

bubuko.com,布布扣

Secondly,after run the mongodb server, next should execute the mongodb client. 

bubuko.com,布布扣

thirdly, we input the db.help command, we will find all the method to operate database/

bubuko.com,布布扣

In the above picture, it;s generally used in the development.

Notes, in the mongodb, there is no command like mysql (‘create database xxx‘), instead use command ‘use dbname‘ to create a new db;

Lastly I set a simple exampe to show usage of some command.

bubuko.com,布布扣





【MongoDB】Serveral common command of MongoDb

原文:http://blog.csdn.net/sxb0841901116/article/details/39384887

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!