MySQL Error - mysql_connect() [<a href='function.mysql-connect'>function.mysql-connec

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SFC
    Senior Member
    • Jan 2006
    • 109
    • 3.0.5

    MySQL Error - mysql_connect() [<a href='function.mysql-connect'>function.mysql-connec

    Been getting this error on a couple sites now... I appreciate any help.

    Code:
    Database error in vBulletin :
    
    mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
    /home/braces/public_html/forums/includes/class_core.php on line 311
    
    MySQL Error   : 
    Error Number  : 
    Request Date  : Sunday, December 20th 2009 @ 11:58:59 AM
    Error Date    : Sunday, December 20th 2009 @ 11:58:59 AM
    Script        : http://www.bracesreview.com/forums/misc.php?do=linkbacks
    Referrer      : 
    IP Address    : 212.95.58.93
    Username      : 
    Classname     : vB_Database
    MySQL Version :
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    See this page for the causes of this error: http://www.vbulletin.com/docs/html/cantconnect

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • SFC
      Senior Member
      • Jan 2006
      • 109
      • 3.0.5

      #3
      I checked that link, however everything is fine on the server end... I am getting a ton of error emails daily, however when I go to the site I don't get them.... They are very random....

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        The server is not fine if you are getting a ton of those errors. You may want to ask your host for help fixing this issue.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • SFC
          Senior Member
          • Jan 2006
          • 109
          • 3.0.5

          #5
          hmmm. not sure why they are coming in randomly. I'll see what I can find.

          Comment

          • Odoin
            Member
            • Jun 2002
            • 41
            • 1.1.x

            #6
            Don't this part:
            [<a href='function.mysql-connect'>function.mysql-connect</a>]:
            seem funny? I been getting them also. Somethings screwy with the DB.

            Comment

            • Shane Greer
              Member
              • Oct 2008
              • 85
              • 4.0.x

              #7
              Same here...

              Everything seems to be working OK forum side but I sometimes receive this error in my inbox.

              Database error in vBulletin :

              mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on '213.171.200.53' (4)
              /home/nas05l/t/thefewgoodmen.com/user/htdocs/thefgmforum/includes/class_core.php on line 312

              www.thefewgoodmen.com

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...