[Only registered and activated users can see links. Click Here To Register...]
thanks for your help but can u explain more please i'm noop:handsdown: i'm use old mysql win (binary 95 mysql)Quote:
Solution obviously being...
#1: Hold a connection open and process all sql queries through it.
#2: Close your connections when you're done with them.
Problem solved!
give me link please of that mysqlQuote:
instead of using things like "kill all connection system"...
why not just use EO mysql functions??? its easy to extract and you can build your own sql wrapper.... its fast and better.... since you just need to read a little...
Btw... its just an idea ^^
My function kill connections that are sleeping. You should close all connections after using them or you'll run into problems. My function doesn't make up for bad programing techniques.Quote:
Basically what Fang said. Sure, if you close all the connections you SHOULD be okay, but that's not always the case. You really should prune the ones that didn't get closed every [insert interval here]. Just make sure you're not killing any active connections in the process of doing so. Also, the real problem you're having is that you didn't set your MySQL Daemon's max_connections higher than the standard amount for a home computer, which you should have done during the setup process..
Well then that's good, I hadn't looked at it. And nothing really does clean up after bad programming.Quote:
My function kill connections that are sleeping. You should close all connections after using them or you'll run into problems. My function doesn't make up for bad programing techniques.
MsSql has the same problem with sleeping connections (I believe). I haven't gotten far enough to implement my function yet on my server. I'll do that tomorrow (maybe) and double check.Quote:
Solution:
>Connect
>Execute
>Close Connection
DON'T KEEP CONNECTIONS OPEN!!!!!!!!!!!!
Fuck MySQL anyways.