MongoDB Learning: (ii) MongoDB simple to use
MongoDB uses:
Before we do the MongoDB operation, we need to run the command to enter the Operation command interface >mongo
Prompt this error, indicating that our system is missing a patch, the patch I Baidu disk Connection: Https://pan.baidu.com/s/1pKPyPoJ official address: http://hotfixv4.microsoft.com/Windows%207/ Windows%20server2008%20r2%20sp1/sp2/fix405791/7600/free/451413_intl_x64_zip.exehotfix KB2731284 or later update is Not installed this issue from an official document in another paragraph: If you are running any edition of Windows Server R2 or Windows 7, please Installa hotfix To resolve a issue with memory mapped files on Windows. If you are running any version of Windows Server R2 or Windows 7, install the hotfix to resolve a memory map A problem with the file in Windows.
1: Install patchesAfter downloading, double click, will extract a patch file, install the patch file. Reboot required after installation ..... (installed after the seemingly also reported this mistake, seemingly does not affect the use.) Later in the study)
MongoDB Simple to use:
Start MongoDB:>mongoView current Database information>show DBSCREATE DATABASE, name random use+ database name>use Firstdb
MongoDB inserting data insert:
>db.people.insert ({"Name": "Table 1 Data", "Text": 123456}) Insert the document in the collection people of the FIRSTDB library (MongoDB data is document nature)
MongoDB View data select--find:
>db.people.find () Find all data
>db.people.find ({"Text": 9999})
MongoDB Modified Data update:
>db.people.update, don't explain.
MongoDB Delete data remove:
>db.people.remove, don't explain.
as above, is the basic operation of MongoDB, follow-up chapter write something, haven't thought well, think good again update.
From for notes (Wiz)
MongoDB Learning: (ii) MongoDB simple to use