Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Populate the Database

Populate the Database

Configure Demo Data Sets

The following Elastic Path demo data is included in the commerce-data project.:

  • ep-shared-demo-data - demo data used by all demos.
  • ep-britney-demo-data - demo data for the AEM Showcase demo.
  • ep-geometrixx-demo-data - demo data for the AEM Geometrixx demo.
  • ep-mobee-demo-data - demo data for Cortex stores.
  • demo-snapitup-data - demo data for example camera stores.
Tip: Configuring Demo Data

To change the demo data that is loaded in your local development environment, update extensions/database/ext-data/src/main/resources/environments/local/ Remove the data sets that you don't want loaded.

Populate the Database

To create a new database schema and populate the database with demo data:

  1. Open a command line, navigate to the extensions/database directory.
  2. Run the following command to run the Data Population tool:
    mvn clean install -Preset-db
Tip: Update Database without Dropping and Recreating Schema
To update an existing database without dropping and recreating the schema, run
mvn clean install -Pupdate-db
For more information, see Data Population - Patterns and Data Population - Extensions Data.
Tip: Troubleshooting

Database settings are defined in your .m2/settings.xml. If there are errors connecting to the database or creating a new schema, you may need to update these settings to match your local database settings.