mongodb-sample-dataset
mongodb-sample-dataset copied to clipboard
download
dose not able to download
Downloading the Dataset for Use on Your Local Machine
It is also possible to download and explore these datasets on your own local machine. You can download the complete sample dataset via the wget command: Code Snippet
wget https://atlas-education.s3.amazonaws.com/sampledata.archive
Note: You can also use the curl command:
curl https://atlas-education.s3.amazonaws.com/sampledata.archive -o sampledata.archive
You should check you are running a local mongod instance or you should start a new mongod instance at this point. This mongod will be used in conjunction with mongorestore to unpack and host a local copy of the sample dataset. You can find more details on starting mongod instances on this documentation page. This section assumes that you're connecting to a relatively straightforward setup, with a default authentication database and some authentication set up. (You should always create some users for authentication!) If you don't provide any connection details to mongorestore, it will attempt to connect to MongoDB on your local machine, on port 27017 (which is MongoDB's default). This is the same as providing --host localhost:27017. Code Snippet
mongorestore --archive=sampledata.archive
You can use a variety of tools to view your documents. You can use MongoDB Compass, the CLI, or the MongoDB Visual Studio Code (VSCode) plugin to interact with the documents in your collections. You can find out how to use MongoDB Playground for VSCode and integrate MongoDB into a Visual Studio Code environment. If you find the sample data useful for building or helpful, let us know on the community forums!
Source: https://www.mongodb.com/developer/products/atlas/atlas-sample-datasets/