I have webhost from ABC Incorporate.
I bought a mysql database from XYZ Incorporate.
When I try to acces via PHP, the MySQL server from XYZ Incorporate, using the ABC Incorporate's server, it gives me this error:
connection refused in
I tried to talk with those two incorporates, and they said that.
No IP restriction was given, so I could've easly connect. My question is, why is connecting?
My config.php
<?php
DEFINE ('DB_USER', 'yes');
DEFINE ('DB_PASSWD', 'somepassword');
DEFINE ('DB_HOST', 'IPv4');
DEFINE ('DB_NAME', 'dbname');
$con = mysqli_connect(DB_HOST, DB_USER, DB_PASSWD, DB_NAME);
if(!$con){
die('Database connection error');
}
?>