MaineFishing45 0 Report post Posted March 21, 2006 (edited) Anyone know how to stop or fix my #4 SQL error? mySQL error: Too many connectionsmySQL error code: Date: Tuesday 21st of March 2006 01:55:50 PM Thats what it says, now hopefully like the other times, its going to fix its self and everything will be fine. Thanks, for any help. --- Update --- Ok, for that same odd reason of all my other errors, my board is now back up 5 minutes later, so I have no clue whats going on. Edited March 21, 2006 by MaineFishing45 (see edit history) Share this post Link to post Share on other sites
mayank 2 Report post Posted March 21, 2006 Well, It was because sql server was down for a little while and then it came back. All sites on Xisto were down...I mean those pages..which were running through Mysql. Share this post Link to post Share on other sites
BuffaloHelp 24 Report post Posted March 21, 2006 I don't know the exact reason but in very rare few occasions the SQL will perform a quick check or halted and experiencing a hiccup. This is when you'll see that error message. OpaQue will be able to answer better than I, but this problem resolves itself--as you noticed. Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted March 21, 2006 (edited) this should help you out just a bit If you get a Too many connections error when you try to connect to the mysql server, this means that all available connections are in use by other clients.The number of connections allowed is controlled by the max_connections system variable. Its default value is 100. If you need to support more connections, you should restart mysqld with a larger value for this variable.mysqld actually allows max_connections+1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege. By granting the SUPER privilege to administrators and not to normal users (who should not need it), an administrator can connect to the server and use SHOW PROCESSLIST to diagnose problems even if the maximum number of unprivileged clients are connected. See Section 13.5.4.19, “SHOW PROCESSLIST Syntax”.The maximum number of connections MySQL can support depends on the quality of the thread library on a given platform. Linux or Solaris should be able to support 500-1000 simultaneous connections, depending on how much RAM you have and what your clients are doing. Static Linux binaries provided by MySQL AB can support up to 4000 connections. but what it is referring to is that a script is running to many queries i think and when it maxes out it shuts down and thus you get that error, but also sometimes a script doesn't get closed properly in php as well gets that as well.I might be missing something in that but from what i search thats the technical definition and i think I cover a simpler explination of it. 2 Hopefully someone can clarify the statement I made about it.but if im correct in the definition you must change the value of the connection in order to prevent that error. Edited March 21, 2006 by Saint_Michael (see edit history) Share this post Link to post Share on other sites