I'm trying to connect to my Abonnement Database 'mydatabase' under the localhost.
telnet localhost 3306 is working and connects successfully.
symfony tells me the following error: 'An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution'
if I try to connect without a password it finds the server gives me the correct error message. What is the correct way to connect to Database in Plesk?
Symfony .env
DATABASE_URL=mysql://dbuser:dbpass@localhost:3306/mydatabase
Ok, after searching many hours i find the solution:
My Database password had incorrect Characters, in my case $ and ?. I think '?' is not allowed in my case. After change the password all is going fine.
Thx for reading and i hope someone need this info as helpful.