Configuring The Database
Generating The Database
We use doctrine/doctrine-fixtures-bundle
to generate the database schema and populate it with test data. This is done automatically when the container is
started for the first time through DDEV's hooks defined in .ddev/config.yaml
.
Note
- For manual database management commands, refer to the officeal Symfony Doctrine Documentation.
- In local development, you can access the PHPMyAdmin Web UI by running its service in the browser.
Exporting A Database
- Open PHPMyAdmin in your browser.
- Select the database you want to export.
- Click the "Export" tab.
- Choose the export method you want to use.
Export as a gunzip file .sql.gz
Importing A Database
- Open PHPMyAdmin in your browser.
- Select the database you want to import to.
- Click the "Import" tab.
- Choose the import method you want to use.