GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php gurus: is there a way to disclose how many sql connections max are set on a box? (https://gfy.com/showthread.php?t=792818)

DutchTeenCash 12-17-2007 10:37 AM

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

DutchTeenCash 12-17-2007 10:43 AM

Love my new mx rev mouse 1 click and it posts twice err

s9ann0 12-17-2007 10:44 AM

something to the effect of:

while (){
mysql_connect();
print $a++;
}

should do the job!

:o)

rowan 12-17-2007 10:50 AM

Quote:

Originally Posted by s9ann0 (Post 13526242)
something to the effect of:

while (){
mysql_connect();
print $a++;
}

should do the job!

:o)

:1orglaugh

How long will all those connections take to die? Are they killed once the script ceases executing?

DutchTeenCash 12-17-2007 10:52 AM

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

DutchTeenCash 12-17-2007 11:16 AM

http://www.gospelcommunications.org/...5/514_Bump.jpg

Bro Media - BANNED FOR LIFE 12-17-2007 12:07 PM

$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