An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
2
votes
1
answer
2326
views
The following command results in the above error;
symfony console doctrine:migrations:execute --up 'DoctrineMigrations\Version20220513151605'
Lot's of questions on it but I cant find any that match my scenario (localhost apache vhost, mysql, symfony).
All searches appear to point to a faulty DSN string. What I've tried thus far...
**.env.local**
DATABASE_URL="mysql://root:password@127.0.0.1:3306/mi_db?serverVersion=5.7.22-log"
DATABASE_URL="mysql://root:password@localhost:3306/mi_db?serverVersion=5.7.22-log"
with no joy?
help
Asked by cookie
(232 rep)
May 13, 2022, 03:57 PM
Last activity: May 13, 2022, 05:42 PM
Last activity: May 13, 2022, 05:42 PM