MongoDB Query Notes
MongoDB Configuration Instructions
Create a new MongoDB folder in the C packing directory-----> Create a new two folder under MongoDB Data folder Bin folder "Direct copy"
Create a new two folder DB folder and log folder under the Data-folder
C:\mongodb\bin>mongod.exe--dbpath "c:\\mongodb\data\db"--logpath "c:\\mongodb\
Data\log\mongodb.log "
**************************************
C:\mongodb\bin>mongod.exe--dbpath "c:\\mongodb\data\db"--logpath "c:\\mongodb\
Data\log\mongodb.log "
Open in New window
C:\mongodb\bin>mongo.exe--port 27017
Show DBS----Display Database
cd--changing file paths
*******************************************************
MongoDB Configuration Tutorial
First step: Install Mongodb-win32-x86_64-2008plus-ssl-3.4.2-signed.msi
Second step: Copy the bin file under MongoDB to the root of the C drive to create a new data folder in the bin's sibling directory---> Create a new db file and a log folder under the Data folder
Step Three:
CD c:\MongoDB\Bin command
Then Mongod.exe--dbpath "C:\\mongodb\data\db"--logpath "C:\\mongodb\data\log\mongodb.log"
Fourth step open a new window
CD C:\MongoDB\Bin
Then use Taobao
Show collections
Show DBS Display database data name
Insert a piece of data
MongoDB Introductory One