I'm setting up my project after restoring my macOS Mojave and getting an error. I install MySQL with homebrew.
I tried to change localhost to 127.0.0.1 but it didn't help me
This is my .env
- DB_CONNECTION = mysql,
- DB_HOST = localhost
- DB_PORT = 3306
- DB_DATABASE= example
- DB_USERNAME=root
- DB_PASSWORD=
This is an error message
1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000] [2002] No such file or directory") /Documents/cleaning/example/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31
2 PDOException::("SQLSTATE[HY000] [2002] No such file or directory") /Documents/cleaning/example/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27