SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Sep 2003
    Location
    Northern California
    Posts
    605
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    could not connect to MySQL: Too many connections

    Alrighty....this is a new error message I've not encountered before.

    looking at the phpinfo data, it says mysql.max_links is "unlimited"

    I'm using mysql_connect (vs pconnect).

    When I try inserting mysql_close() in my functions, I get the :

    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    Any suggestions are appreciated

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2005
    Location
    Moscow, Russia
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    are you just putting in mysql_close(), or are you specifying a connection handle?

    please post a code snippet including the part where you create the connection.

  4. #4
    SitePoint Guru
    Join Date
    Sep 2003
    Location
    Northern California
    Posts
    605
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi thanks for the replies. at this point, i'm not sure what the root problem is so, i'm deferring the issue to my hosting company. if it turns out to be something others can benefit from, i'll re-post.


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
  •