PDO cannot connect to MySQL Database

Account: epiz_26819171

Error message: Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Other info:

Trying to remotely connect to my database for a website with a WAMP server.
$db = new PDO(“mysql:host=sql210.epizy.com; dbname=epiz_26819171_logins”, ‘epiz_26819171’, ‘(password goes here)’);

Database seems to not send anything back, is this because you can only connect through the website?

You can’t use remote SQL, you can only use sql from apps running on InfinityFree

3 Likes

Ok, thanks

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