How to connect to (Plesk Obsidian) database

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:[email protected]:3306/mydatabase

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *