1.2 Database Configuration - ufmedia/whalepress GitHub Wiki

Configuring the Database

To ensure database persistence, files are stored locally in local/var/lib/mysql.

A quirk of doing things this way is that if you change the ownership of the local directory, even to the same group:user, you'll need to restart your containers to avoid database oddities (at least on WSL)!

Default database credentials when creating a .env file:

DB_USER=wordpress
MYSQL_DATABASE=wordpress
MYSQL_ROOT_PASSWORD=wordpress

Import an Existing Database

Place your .sql file in local/initial-db. The file will be imported when the database container runs for the first time.

If you've already built the containers, you can use phpmyadmin or WP CLI to import a new database.