Connection Timed Out

I too have started facing a similar issue. After working flawlessly for a long time, I have started getting a “Connection timed out” error from PHP:

**Warning** : mysqli_connect(): (HY000/2002): Connection timed out in **/home/vol14_6/epizy.com/epiz_30668142/htdocs/index.php** on line **70**

MySQL username: epiz_30668142

PHP code that has stopped working today:

$con = mysqli_connect($host,$user,$pass,$db);
if(!$con) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

Hi and welcome to the forum

Sorry for the late reaction - do you still have this problem?

5 Likes

Hello @Oxy - many thanks for your message. The problem mysteriously got resolved overnight! Thank you so much for your quick assistance. Appreciate it very much.

2 Likes

Probably some changes were made on the server in order to improve the quality of the service.

Thanks for the feedback and good luck in your future work :slight_smile:

2 Likes

There were some issues with SQL302, the server you were on. That has been fixed now. We’re sorry for the inconvenience.

4 Likes

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