Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

MySQL error: server has gone away

May 9, 2012 by ross
hi all
I am using PHP/MYSQL based script on my LAN web server. Every time I start my script I get the error message:
Warning: mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: MySQL server has gone away in E:\Server\vt\adodb\drivers\adodb-mysql.inc.php on line 373

And then after a little while the error disappears

Can anyone help me fix this error please?
Thanks in advance

2 Answers

0 votes
May 9, 2012 by WebGuru
check mysql logs for this and try to increase timeout.
0 votes
May 9, 2012 by expert
hi there
Adjust the wait_timeout variable in /etc/my.cnf and restart mysql.
this url should help http://dev.mysql.com/doc/refman/5.0/en/gone-away.html