Announcement

Collapse
No announcement yet.

Can't connect to local MySQL server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't connect to local MySQL server

    I'm getting this error message whenever I or anyone else tries to get onto our forums:

    Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/bret/public_html/forums/admin/db_mysql.php on line 38



    There seems to have been a slight problem with the database.
    Please try again by pressing the refresh button in your browser.

    An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

    We apologise for any inconvenience.



    What is the error and how can it be fixed?

    Suggestions?

  • #2
    I'm also getting the following e-mails:

    Database error in vBulletin :

    Link-ID == false, connect failed
    mysql error: Can't connect to local MySQL server through socket
    '/tmp/mysql.sock' (111)

    mysql error number: 2002


    Any ideas?

    Comment


    • #3
      This error means either MySQL crashed, it's not running or it can't find the socket. Here is more info on this error:

      http://www.mysql.com/doc/C/a/Can_not...to_server.html
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        Hmm...ok. In plain English, how can I, a novice, fix this?

        Comment


        • #5
          The first thing to try is you or your host needs to restart MySQL. If you are on a shared server you'll have to ask your host to do this.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

          Loading...
          Working...
          X