Mysql has gone away

Mysql Has Gone away
I use comet in mywesite… The comet page returns “Mysql has gone away” error sometimes(about per 3 requests with ajax)

I have used mysqli extension (object-oriented) to connect php with mysql database
even php mysqli -> ping() method doesnt fix this problem…

The best part is This error did not occurred for two months i was using this website with comet
But now it occurres…

Tips: I changed mysql database’s collation to utfmb4_unicode_ci and charset to utbmb4

How can i fix this?

@Supun What is your website name ??

@akhilkumar332 Thank you for ur support…


I fixed it with $mysqli -> ping() , using it all the time the infinite loop runs… so it makes mysql connection alive…

You can access my website from - Thioron

You can log in with creating a new user account - Click build new thioron btn

1 Like