I am trying to connect to my MySQL DB from a project with Laravel Sail in Docker. The problem is that from Sequel Ace I have no problems with the basic data, localhost, 3306, user + pass but from PhpStorm it tells me that the credentials are incorrect (sail/password). Any ideas what I'm missing in the settings?
solved!!!
Since Docker is not really our environment, we cannot connect directly. To do this, what we will do is adjust the .env file by adding the following environment variable:
FORWARD_DB_PORT=3307
From there, changing the connection port from 3306 to 3307 everything goes smoothly...