Installing MongoDB
- First step: Download the installation package: official ← Click here, if the win system, note whether the 64-bit or 32-bit version, please select the correct version.
- Second step: Create a new directory "D:\MongoDB", unzip the downloaded installation package, locate all the. exe files under the bin directory, and copy to the directory you just created.
- Step three: Create a new "data" folder in the "D:\MongoDB" directory, which will be the root folder for data storage.
To restore a backup:
- The first step: Enter the root directory of the MongoDB installation.
- Step Two: Enter "Mongdb\bin\mongorestore-h localhost-d dbName Bakroot "
DbName is the name of the database to be restored and needs to be established in advance
Bakroot is a backup file directory example: C:\mongdb_bak\dump\bak
MongoDB Notes--Installation articles