According to the resolution of this question...
What is the Symfony firewall doing that takes so long?
...I try to change in the .env
file
DATABASE_URL=mysql://root:root@localhost/project
to
DATABASE_URL=mysql://root:root@127.0.0.1/project
to achieve better performance.
But then I get an error:
An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused
Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: "An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused" at /Users/work/project/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 112