Setup Local Database
Setup Local Database
Populate the Database
To create a new database schema and populate the database with demo data:
- In the command line, navigate to the extensions/database directory.
- 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 the
following command:
mvn clean install -Pupdate-dbFor more information, see Data Population - Patterns and Data Population - Extensions Data.
Tip:
Troubleshooting
Database settings are defined in your .m2/settings.xml file. 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.