Here you will find instructions for importing the results
dataset for the final week of M001: MongoDB Basics into a locally running MongoDB deployment.
This dataset is provided in Amazon S3 in a single zip file (9 KB zipped; 147 KB unzipped). The files were created with the mongodump command. This dataset may be imported into your MongoDB deployment using mongorestore. The database included is as follows.
- results (147 KB) - two collections --
scores
andsurveys
-- which contain simple contrived documents used for some quizzes and final exam questions
These instructions will help you load the results
dataset into a local MongoDB instance (e.g., MongoDB running on your laptop).
- Download the m001-results-dataset.zip file (9 KB) from S3.
- Unzip
m001-results-dataset.zip
. This will create a directory/folder calleddump
. - Ensure you have a running MongoDB instance. For instructions on installation and setup, see the MongoDB installation documentation. Installation tutorials for all platforms include instructions for running MongoDB (the mongod daemon).
- Once you have a
mongod
instance running, you may import the dataset using mongorestore.- Open a command shell (e.g., bash, powershell, or cmd).
- Change directory (e.g.,
cd
) to where you unzippedm001-results-dataset.zip
. - Assuming you are running
mongod
on the default port, you may import the dataset from the dump directory by simply running,mongorestore
.mongorestore
looks for a directory calleddump
to import.