Results 1 to 4 of 4

Thread: Warning: mysql_connect

  1. #1
    Join Date
    Feb 2009
    Posts
    53

    Default Warning: mysql_connect

    Hello

    In admin page I got this

    Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/content/s/v/m/svmedrs/html/lib/db.class.php on line 20

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/content/s/v/m/svmedrs/html/lib/db.class.php on line 22

    Fatal error: Call to a member function Fields() on a non-object in /home/content/s/v/m/svmedrs/html/app_setting.php on line 5

    please help
    Thank you
    Last edited by fahd; 07-05-2011 at 09:18 PM.

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    The error message tells that it is failed to connect to mysql server because it currently handle too many connection right now. Mysql server has configuration value to set how many maximum connection is allowed. More than this number will be rejected.

    It seems the mysql server is busy. On shared server it may being abused by other user. If you are on vps or dedicated server and running busy websites, then raising the limit number will solve this problem.

    Indexu do not use persistent connection. The connection to mysql will be dropped right after the script end the execution.

  3. #3
    Join Date
    Feb 2009
    Posts
    53

    Default

    my database Version 4.1
    Do I need to change it to Version 5?

    Thank you

  4. #4
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    No need. According mysql website (MySQL :: MySQL 5.5 Reference Manual :: C.5.2.7 Too many connections), you need to adjust this setting:
    Code:
    max_connections

Similar Threads

  1. Warning Message
    By dePaulus in forum v5.x
    Replies: 8
    Last Post: 12-20-2007, 09:00 AM
  2. Phishing warning on IE
    By rapstok in forum Indexu Lite
    Replies: 5
    Last Post: 11-13-2007, 11:35 AM
  3. Warning: mysql_num_rows()
    By daniel1818 in forum Indexu Lite
    Replies: 1
    Last Post: 02-03-2006, 01:08 PM
  4. Warning: mysql_pconnect()
    By conheo in forum v5.x
    Replies: 5
    Last Post: 01-03-2003, 08:14 PM
  5. Warning Message
    By Shophere in forum v5.x
    Replies: 1
    Last Post: 08-20-2002, 10:59 AM

Posting Permissions

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