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:[email protected]/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
127.0.0.1:3306
and clear the cache. – gp_sflover127.0.0.1:3306
and cleared the cache after but this did not solve the problem – peace_loveDATABASE_URL="mysql://root:[email protected]:3306/project"
(and clear the cache) PS: Did that line works before? – gp_sfloverDATABASE_URL=mysql://root:root@localhost/project
Are you sure, this is the correct port? – peace_love