Docs Menu
Docs Home
/ /

Load Sample Data Into A Local Deployment

Estimated completion time: 5 minutes

Use this tutorial to load sample data into your self-managed MongoDB deployment.

To utilize the sample data that MongoDB provides, you must first create a deployment to load data into. To create a self-managed local deployment, see Run-time Database Configuration for Self-Managed Deployments.

To load sample data, you must also have a minimum of readWrite access to the deployment. For more information on user administration, see Manage Users and Roles on Self-Managed Deployments.

To load sample data into your local deployment:

1

Run the following command in your terminal to download the sample data:

curl https://atlas-education.s3.amazonaws.com/sampledata.archive -o sampledata.archive
2

Run the following command to load the data into your deployment, replacing <port-number> with the port where you're hosting the deployment:

mongorestore --archive=sampledata.archive --port=<port-number>

You can also generate synthetic data that aligns to your real data's schema. To learn more, see Generate Synthetic Data.

To import your own data, see Migrate or Import Data.

Back

Atlas

On this page