Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2009

    Unanswered: 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


  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    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 on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts