您的位置:首页 > 博客中心 > 数据库 >

【MongoDB】Serveral common command of MongoDb

时间:2022-03-14 00:00

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. 

gxlsystem.com,布布扣

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

gxlsystem.com,布布扣

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

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

gxlsystem.com,布布扣





热门排行

今日推荐

热门手游