How can i see how many mysql connections are opend ?

Posted by Sahal on Stack Overflow See other posts from Stack Overflow or by Sahal
Published on 2011-06-28T05:38:24Z Indexed on 2011/06/28 8:22 UTC
Read the original article Hit count: 143

Filed under:
|
|

How can i see how many number of connections are opened in one request. (mysql_connect)

I know that if i call mysql_connect function 100 times, function will return the connection link which is already opened only if parameters of the function is same. It will not request for new connection if connection is already exists.

But i just want to make sure mysql_connect is not requesting new.

I am working with a legacy system which contains so many "mysql_connect" function.

Is there any setting in apache or is there any way i can log this number of connection value in apache or mysql log file?

Please help.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql