By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,319 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Open db connection

P: n/a
Hi.

I'm trying to close unnecessary db connection to reduce the concurrent
connection. Is there any way I can find the open connection?

Thanks.

Ben
Aug 7 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Aug 6, 11:41 pm, "Ben Sehara" <seh...@hotmail.comwrote:
Hi.

I'm trying to close unnecessary db connection to reduce the concurrent
connection. Is there any way I can find the open connection?
almost certainly..
however you didn't specify what type of db your using, or how you
opened the connection.
I'll venture to guess you want to see
http://www.php.net/function.mysql-close.php
this is unnecessary as it's closed when the script ends..
and note that mysql_connect() returns the connection resource... so
keep track of it.

Aug 7 '07 #2

P: n/a
Sorry, but you had a good guess. Yes, it is MySQL.
I didn't know it's closed when it ends. What a nice feature!

Thanks.
"BKDotCom" <bk***********@yahoo.comwrote in message
news:11**********************@x40g2000prg.googlegr oups.com...
On Aug 6, 11:41 pm, "Ben Sehara" <seh...@hotmail.comwrote:
>Hi.

I'm trying to close unnecessary db connection to reduce the concurrent
connection. Is there any way I can find the open connection?

almost certainly..
however you didn't specify what type of db your using, or how you
opened the connection.
I'll venture to guess you want to see
http://www.php.net/function.mysql-close.php
this is unnecessary as it's closed when the script ends..
and note that mysql_connect() returns the connection resource... so
keep track of it.

Aug 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.