As far as I know, DDEV provides configuration options for phpMyAdmin to comfortably work with containered MySQL/MariaDB databases. But I would rather like to use a different tool like e.g. phpStorm or DBeaver or such. Is there a way to make my wish come true?
Supplementing the docker-compose configuration I exposed port 3306, accordingly.
version: '3.6'
services:
web:
ports:
- 3306:3306
Trying to connect to a containered MariaDB database from my client host looks like the following.
$ mariadb --host=foo.ddev.site --user=db --password=db --database=db
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake: reading initial communication packet', system error: 11