If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Mysql too many connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-10, 07:38
smashrc smashrc is offline
Registered User
 
Join Date: Dec 2009
Posts: 3
Mysql too many connection

I using Mysql Administrator tool to backup my database. While backing up, my web is not running normal. It shows this at the front page.

Warning: mysql_connect() [function.mysql-connect]: User hpirs4_user1 already has more than 'max_user_connections' active connections in /home/hpirs4/public_html/includes/functions/database.php on line 19
Unable to connect to database server!


Please let me know what should I do and where to change the value thanks

P.S. I'm not good web programming

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-30-10, 08:39
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
so you need two out why there is a problem...
the message is simple enough there are more connections being requested then are available.

so the easy approach is to increase the number of connections. that can be done in either the PHP INI file and /or the MySQL ini/config file.

but that cures the symptoms, it doesn't necessarily cure the problem. you need to work out who / what is consuming the available connections, coudl you sue pconnect or soemthign simialr to share connections?

is it your application thats doing this or is there a rogue process from another app wanting to use the MySQL server? PHP will sutomtaiclly clear up after itself, other environments don't, nevertheless I'd argue its better to close a connection in PHP as soon as you have finished with it, releasing it for use by others.

it may be you need to permit more connections and increase the memory available on the server running MySQL.... each connection consumes resources and thats why most installation limit the number of connections to preserve throughput
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On