I set up a DB-Connection via DSN (env-variable) with a non-default-port (3307) for mysql/mariadb. Cakephp connects successfully. Works. Everything fine. It’s the default connection.
When I use the Migration-Class and pass the default-connection via the constructor, the Migrations can’t connect to db (refused). When I change the db-port to 3306, it works again. Switched back - no connection.
What can I do to make it work, or is this a bug in class?