keep gettin mysql error PLEASE HELP!

Discussion in 'MySQL' started by whiteblue1942, May 18, 2008.

  1. #1
    Database error in vBulletin :

    can someone please tell me what this means and how to fix it? i had my forum running for over a week now and this just happened today


    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' (2)
    /home/tucoraco/public_html/includes/class_core.php on line 311

    MySQL Error :
    Error Number :
    Request Date : Sunday, May 18th 2008 @ 02:07:43 PM
    Error Date : Sunday, May 18th 2008 @ 02:07:43 PM
    Script : http://www.tucora.com/member.php?find=lastposter&f=35
    Referrer :
    IP Address : 77.91.224.23
    Username :
    Classname : vb_database
    MySQL Version :
     
    whiteblue1942, May 18, 2008 IP
  2. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #2
    that error is related to your MySql server, if it is running, maybe you have to increase the number of connections allowed.

    I'm not MySql experth, however, but I face this problem a while back and it was solved accessing the root server to change it.
     
    Trusted Writer, May 18, 2008 IP
    whiteblue1942 likes this.
  3. hillord

    hillord Well-Known Member

    Messages:
    2,211
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    140
    #3
    what trusted writer says it somewhat true. when your mysql database is full of connections, it will die of and it won't be accessable. So if you want to have the mySQL running all the time, go to SSH, type pico /etc/my.cnf

    and changes the max connections to a higher value.
     
    hillord, May 18, 2008 IP
  4. Nathan Malone

    Nathan Malone Well-Known Member

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Assuming the server is managed by someone else (hosting company - i.e., it's not a self-managed dedicated or VPS), if you simply let the hosting company know about the problem, they should be able to get a server admin in there to tweak the settings, to try to ensure that it doesn't happen again.
     
    Nathan Malone, May 19, 2008 IP