note 93760 added to function.mysql-pconnect

From: Date: Sat, 26 Sep 2009 20:45:01 +0000
Subject: note 93760 added to function.mysql-pconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-161098@lists.php.net to get a copy of this message
Right after I upgraded to PHP 5.3 I started getting "MySQL server has gone away" errors on almost every other page request from the apache server. I tried a few ideas that didn't work. Here is the solution: I changed all my mysql_pconnect() statements to mysql_connect(). It fixed the problem. For some reason PHP 5.3 does not like persistent connections. ---- Server IP: 69.147.83.197 Probable Submitter: 71.192.146.44 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-pconnect.php Edit -- https://master.php.net/note/edit/93760 Del: integrated -- https://master.php.net/note/delete/93760/integrated Del: useless -- https://master.php.net/note/delete/93760/useless Del: bad code -- https://master.php.net/note/delete/93760/bad+code Del: spam -- https://master.php.net/note/delete/93760/spam Del: non-english -- https://master.php.net/note/delete/93760/non-english Del: in docs -- https://master.php.net/note/delete/93760/in+docs Del: other reasons-- https://master.php.net/note/delete/93760 Reject -- https://master.php.net/note/reject/93760 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161098) next »