I would like to connect phpstorm to my database (mysql) in order to have the data source set for raw SQL inspections.
This database is a docker container located on a virtual machine managed by vagrant.
I have been able to properly configure vagrant and its ssh connection (connection is OK) but now I'm stuck. If I go to the DB connection setup in PHPStorm, I don't know what to do next:
- a "normal" configuration can't work, since the DB is not directly on my machine
- a connection through SSH/SSL will connect to my VM and seek for DB there, but not in docker
Is there a way to achieve such a thing?