The basics of MongoDB

Source: Internet
Author: User
Tags install mongodb mongodb

About the MongoDB database Summary 1. Installing the Mongodb2.mongo Database concept 3.mongo database directive MONGO database may not be practical for actual project development, but as a front-end test, enough. Close the database for the MONGO database, you need the correct posture when you close it, or you will get an error. The proper way to close MongoDB is db.shutdownserver () http://blog.sina.com.cn/s/blog_976d93830101eh71.html reference URL to install MongoDB here there are pits, Remove the Installation Interface column, or the installation of the progress bar is very slow, estimated to wait until the flowers thanks. This operation Operation 2 times, in the second time to wait for an hour has not progressed, so still looking for Niang.  To know why. Use a Command execution window to enter the command below, and the carriage return is connected to the database

And then open a command execution window.

Enter the database at this point ~ ~ ~ is not very simple

Working with a database view the database default database

Create a database

You can see the name of the database you created only if you have data in the database by using show db.

Insert Document

A piece of data is a document, and a list of data is made up of multiple documents, that is, a collection. You can have multiple collections in a database that specifies a name.  so when looking for a list of data to fly, navigate to the database of the specified name, then navigate to the collection below it, and finally view each document in the collection. The name of the database and its The name of the next document collection is not the same, so the middle part is omitted.

Basic concepts of MONGO database in MongoDB are the basic concepts of documents, collections, and databases. In the MONGO database, the document is in JSON form, consisting of a collection of documents that comprise the database. That is, the database does not exist in a table but is rendered in JSON-formatted data objects.  Understand the structure of MONGO database data, it is easy to understand the operation of MONGOs database data. Thousands of miles of the trip, continue to add tile tim.

The basics of MongoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.