Closed hasentopf closed 6 years ago
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")
Both docker machines started, but it seems to me that "web" can't connect to "mysql"? Can you help me with this issue?
@hasentopf delete your default docker virtual machine and install it again
Thanks. The solution was the name of the DB_HOST in the .env file. I use "DB_HOST=mysql" and now it connects to the db.
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")
Both docker machines started, but it seems to me that "web" can't connect to "mysql"? Can you help me with this issue?