Go Back   CodingForums.com > :: Server side development > MySQL

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-15-2006, 03:57 AM   PM User | #1
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
Weird error

I am having someone host for me because I don't know a whole lot about databases, but when I got to my site I get this wierd error message, what does it mean?


Warning: mysql_connect(): Too many connections in /srv/www/htdocs/web6/html/board/config/multiforums.config.inc.php on line 10
Unable to connect to database on 'localhost' with user 'web6'
Please check your settings in multiforums.config.inc.php!

Thanks,
Vapor is offline   Reply With Quote
Old 09-15-2006, 04:00 AM   PM User | #2
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
I acutally figured it out myself by looking in the Mysql manuel, this it what it said:

A.2.6. Too many connections
If you get a Too many connections error when you try to connect to the mysqld 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



Sorry for the bother.
Vapor is offline   Reply With Quote
Old 09-15-2006, 01:13 PM   PM User | #3
guelphdad
Super Moderator


 
guelphdad's Avatar
 
Join Date: Mar 2006
Location: St. Catharines, Ontario Canada
Posts: 2,629
Thanks: 4
Thanked 147 Times in 138 Posts
guelphdad will become famous soon enoughguelphdad will become famous soon enough
No bother Vapor, thanks for coming back and posting the relevant area of the manual. You won't be the only one who runs into this problem. Now we have a solution at hand.
guelphdad is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:09 PM.


Advertisement
Log in to turn off these ads.