0

I'm receiving errors from Mariadb. This is ok:

$db = new mysqli(...);
usleep(1000*1000); // 1 second is ok
$db->query('SELECT 1');

This is not ok:

$db = new mysqli(...);
usleep(1001*1000); // 1.001 second makes MySQL server has gone away
$db->query('SELECT 1');

So, I'm searching for some exactly 1 second timeout. But where? I'm out of ideas...

1 Answer 1

0

So, the reason was wrong wait_timeout

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .