|
mysql_pconnect() and mysql_connect(): msg#03599php.general
Hello, When I use "mysqladmin processlist" to view the mysql process, there are a few process in "Sleep" status. I wonder what makes it sleep, so I wrote a little script like this: #!/usr/bin/php4 <? mysql_pconnect("192.168.16.210","myaccount","password"); system("sleep 10"); ?> This script will make a mysql_pconnect(), sleep for 10 seconds and then end the script. In the sleep time, I use mysqladmin process to view the process and exactly the process is there. But when the script ends after 10 seconds, I can't find that process in the processlist. So, what makes those "Sleeping" process in my mysql server? -- Patrick Hsieh <pahud@xxxxxxxxx> GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | PHP Mail problem, Manisha |
|---|---|
| Next by Date: | Re: mail() with images *embedded*, Jason Wong |
| Previous by Thread: | PHP Mail problem, Manisha |
| Next by Thread: | SMARTCARDS - PHP + MySQL, PHPCoder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |