MariaDB Database
MySQL-compatible database server
MySQL-compatible database server using MariaDB latest version.
Docker Configuration
Image: mariadb:latest
Ports: 3306:3306
Volume: damp-mariadb:/var/lib/mysqlDAMP identifies the service using Docker labels. Container name is auto-generated by Docker.
Port Configuration
Default ports: 3306 (host) → 3306 (container)
If port 3306 is occupied on the host machine, DAMP automatically uses the next available port. Check the DAMP interface to see the actual port assigned.
Environment Variables
| Variable | Value | Description |
|---|---|---|
MYSQL_ROOT_PASSWORD | rootpassword | Root password |
MYSQL_DATABASE | development | Default database |
MYSQL_USER | developer | Non-root user |
MYSQL_PASSWORD | devpassword | User password |
Connection Information
From Host Machine (Windows)
Connect from your Windows host to the MariaDB service.
mysql -h localhost -P 3306 -u developer -pdevpassword developmentConnection Details:
- Host:
localhost - Port:
3306(or actual port shown in DAMP) - User:
developer - Password:
devpassword - Database:
development
Connection String:
mysql://developer:devpassword@localhost:3306/developmentFrom Project Containers
Connect from your DevContainers or other Docker containers to the MariaDB service.
Use the container name or ID shown in the DAMP interface.
# Using container name from DAMP
mysql -h [container-name] -u developer -pdevpassword developmentLaravel .env Configuration:
DB_CONNECTION=mysql
DB_HOST=[container-name]
DB_PORT=3306
DB_DATABASE=development
DB_USERNAME=developer
DB_PASSWORD=devpasswordReplace [container-name] with the actual container name displayed in DAMP.
Use the same mysql connection driver - MariaDB is 100% compatible with MySQL clients.
Data Persistence
All data is stored in the damp-mariadb Docker volume. Removing the service preserves your databases.