Connection refused to MySQL DB

User: epiz_31589084

Error Message

Warning: mysqli_connect(): (HY000/2002): Connection refused in /home/vol5_7/ on line 6

Other Information

This is my code:

define("DB_HOST", "");
define("DB_USER", "epiz_31589084");
define("DB_PASSWORD", "***********"); # removed for privacy
define("DB_DATABASE", "epiz_31589084_cloud");
$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);

The same code works for another website I own, I am also 100% sure all of the credentials are correct


That is not the database host. The database hostname will looks something like, where XXX is replaced by 3 numbers. The correct database server can be found in the Client Area.


oh thanks, I just realized that.

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