|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-14 07:18 UTC] sniper@php.net
[2001-05-14 07:54 UTC] Thomas dot Lamy at netwake dot de
[2001-05-23 01:46 UTC] sniper@php.net
[2001-06-12 17:23 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 23:00:01 2025 UTC |
After doing multiple (say 3) mysql_pconnect() from within one page, as suspected the number of mysql threads increases, but only the last connection made is being reused by subsequent calls to mysql_pconnect from other pages/requests. This is a bit unconfirmed, since I don't have the time and resources right now, but tests on a production site (which has crashed very often the last time) showed that the following code cut down the number of mysql threads at least tenfold: if (!@mysql_select_db ("test")) { mysql_pconnect("db","user","pass") or die ("No DB:".mysql_error()); mysql_select_db ("test") or die ("database does not exist: ".mysql_error()); }