Problem conecting to MySQL DB with PDO Method

Hi, my website is having trouble connecting to the DB, The username, password and hostname It’s using to connect are correct.

This is the error code my site is throwing:

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/vol3_1/ Stack trace: #0 /home/vol3_1/ PDO->__construct(‘mysql:host=\tsql…’, ‘epiz_27059745’, ‘n75p2gvy’) #1 /home/vol3_1/ require(‘/home/vol3_1/ep…’) #2 {main}

Maybe this can help you?

If you are using the http protocol in your URL then try removing it.

1 Like

This seems wrong. The \t part probably shouldn’t be there.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.