Too many connection

05/23/2012 11:06 magnon#1
[Only registered and activated users can see links. Click Here To Register...]
05/23/2012 11:13 Korvacs#2
Yes your correct thats exactly what it says.
05/23/2012 11:20 pro4never#3
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!
05/23/2012 11:25 magnon#4
Quote:
Originally Posted by pro4never View Post
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!
thanks for your help but can u explain more please i'm noop:handsdown: i'm use old mysql win (binary 95 mysql)
05/23/2012 12:01 Korvacs#5
I swear you should give like 80% of your donations to the community here, without us your server wouldnt be online >_>.

I mean come on, atleast try and fix it yourself, go research that error.
05/23/2012 12:05 diedwarrior#6
Didn't Fang give people a killconnection system ?
05/23/2012 13:04 12tails#7
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 ^^
05/23/2012 13:53 magnon#8
Quote:
Originally Posted by 12tails View Post
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 ^^
give me link please of that mysql
05/23/2012 14:55 Kiyono#9
Quote:
Originally Posted by magnon View Post
give me link please of that mysql
Eudemons source code, find it.
05/23/2012 19:43 Spirited#10
Solution... close and dispose of ALL connections after you're done using them or better yet, create a destructor method in the MySql read and write classes. Run the kill connections function I wrote and execute it on a thread within a while loop. Loop it every 5 minutes or so.
05/23/2012 21:39 Zeroxelli#11
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..
05/24/2012 01:23 Spirited#12
Quote:
Originally Posted by Zeroxelli View Post
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..
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.
05/24/2012 01:39 Zeroxelli#13
Quote:
Originally Posted by Fаng View Post
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.
Well then that's good, I hadn't looked at it. And nothing really does clean up after bad programming.
05/24/2012 10:31 I don't have a username#14
Solution:
>Connect
>Execute
>Close Connection

DON'T KEEP CONNECTIONS OPEN!!!!!!!!!!!!

Fuck MySQL anyways.
05/24/2012 11:48 Spirited#15
Quote:
Originally Posted by I don't have a username View Post
Solution:
>Connect
>Execute
>Close Connection

DON'T KEEP CONNECTIONS OPEN!!!!!!!!!!!!

Fuck MySQL anyways.
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.