0
Hello I’m trying to make a test connection to a server called *
infinityfree
I’m using php with PDO. Call for connection.
<?php
try {
$connex = new PDO("mysql:host=sql206.epizy.com;dbname=epiz_21864346_controle_estoque","epiz_21864346","kuNg2kQjR8XR");
$connex->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo 'ERROR: ' . $e->getMessage();
}
Detail of the server I am using
Error that is returning me
Can someone help me ?
Could be a firewall, and I think you need to specify the service port
– Sveen
Remove your password from the example
– Giovanni Nunes
Tend to connect from the command line Mysql client, so you can know if the problem is PHP-specific or not.
– Giovanni Nunes
Sometimes the host blocks general, and has to release the IP that is trying to access.
– rbz