![]() |
php gurus: is there a way to disclose how many sql connections max are set on a box?
havent got root on this server so Id like to know how many sql connections are set max, is there some php command I can run?
thanks :thumbsup |
Love my new mx rev mouse 1 click and it posts twice err
|
something to the effect of:
while (){ mysql_connect(); print $a++; } should do the job! :o) |
Quote:
How long will all those connections take to die? Are they killed once the script ceases executing? |
im not lookin for something that opens a ton of connections and sees where it gets stuck obviously
just some parameter that says 500 simult connections or so - dunno if that exists in php |
|
$row = mysql_fetch_row(mysql_query("SHOW VARIABLES LIKE 'max_connections'")); echo $row[1];
Thanks goes to drocd of my irc channel, see sig for it. |
All times are GMT -7. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123