Docker MySQL Connection

Hi

i got error in docker mysql connection:


Doctrine \ DBAL \ Exception \ ConnectionException (2002)
An exception occurred in the driver: No such file or directory
Previous exceptions
No such file or directory (2002).

I checked host in config.development file with “127.0.0.1”,“localhost”, and “docker database link name” but still i have this error.
anybody has solution to solve this problem?

  1. Which version are you using?
  2. You better turn on Debug and post the complete error stack trace.
  3. Make sure you have set the port of MySQL for our docker container.
  4. Google the error message to find more info.