Close

Results 1 to 3 of 3
  1. #1
    DF VIP Member mladen's Avatar
    Join Date
    Jan 2002
    Location
    Cheltenham
    Posts
    2,005
    Thanks
    4
    Thanked:        1
    Karma Level
    390

    Help PHP/mySQL - Too many connections

    What could be causing this error?

    "Warning: Too many connections in /home/httpd/vhosts/host/httpdocs/component/connect.php on line 9
    Too many connections"

    First time its done that
    Mladen

  2. #2
    DF VIP Member hxbro's Avatar
    Join Date
    Nov 2000
    Location
    Behind a wall
    Posts
    2,731
    Thanks
    4
    Thanked:        18
    Karma Level
    476

    Default Re: PHP/mySQL - Too many connections

    There are too many connections to the mysql server, are you on a shared server ? are you closing the connections to the server when you have finished your queries ?

    You might find it better to use mysql_pconnect rather than mysql_connect if you are not using it already. This should reuse existing connections if they are not been used.

  3. #3
    DF VIP Member mladen's Avatar
    Join Date
    Jan 2002
    Location
    Cheltenham
    Posts
    2,005
    Thanks
    4
    Thanked:        1
    Karma Level
    390

    Default Re: PHP/mySQL - Too many connections

    Quote Originally Posted by hxbro
    There are too many connections to the mysql server, are you on a shared server ? are you closing the connections to the server when you have finished your queries ?

    You might find it better to use mysql_pconnect rather than mysql_connect if you are not using it already. This should reuse existing connections if they are not been used.
    Thanks for the reply. It is on a shared server so I guess thats causing the problem.

    Keep up the quick replies it helps a great deal
    Mladen

Similar Threads

  1. Looking for PHP (no mysql) script!
    By itschris in forum Website Coding & Graphics
    Replies: 3
    Last Post: 5th March 2003, 11:47 AM
  2. PHP & MySQL
    By g1bbo in forum Website Coding & Graphics
    Replies: 6
    Last Post: 20th December 2002, 05:34 PM
  3. For people with problems with xbox to PC connections
    By sitinduck in forum Microsoft Consoles
    Replies: 6
    Last Post: 29th October 2002, 06:07 PM
  4. Small question on MS SQL, MySql and MS ACCESS
    By H@z in forum The Dog and Duck
    Replies: 1
    Last Post: 7th October 2002, 12:45 PM
  5. Weird Dropped Dial-up Connections
    By tef89 in forum PC Problems
    Replies: 11
    Last Post: 16th September 2002, 07:19 PM

Social Networking Bookmarks

Posting Permissions

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