Link to home
Start Free TrialLog in
Avatar of garyilm
garyilm

asked on

Kill Mysql Sleepy Connections with ASP

From time to time I find some sleepy connection in my mysql database. Im looking for a way to kill these through an asp page. I am looking for a code sample in asp.
Avatar of Big Monty
Big Monty
Flag of United States of America image

sorry to say but the most reliable way to do this is to go through your code and make sure you close each connection manually:

conn.open connectionString

'-- do stuff

if conn.State <> 0 then conn.Close
set conn = nothing
if you've already checked this, you want to disable the autoconnect flag in MySQL, as this may be the problem as well.
ASKER CERTIFIED SOLUTION
Avatar of snoyes_jw
snoyes_jw
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial