The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mysql fails with Can't connect to local MySQL server through socket '/var/lib/mysql/m

Discussion in 'General Discussion' started by noimad1, Apr 21, 2007.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    Ok, my mysql is failing with the error:

    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

    I've tried all of the usual fixes, but can't seem to get anything to work.

    Here is what I have tried.

    1. Tried to reset the root mysql password.
    2. Did a /scripts/mysqlup --force
    3. Did the following:


    cd /var/lib/mysql
    touch mysql.sock
    chown mysql:mysql mysql.sock
    chmod 1777 mysql.sock

    now make a sym link into /tmp

    ln -s /var/lib/mysql/mysql.sock /tmp
    then
    chmod 1777 /tmp

    now
    /scripts/mysqlup --force


    now just restart mysql
    /etc/rc.d/init.d/mysql restart


    None of which seem to work.....

    Does it look like I missed anything? Any ideas?
     
  2. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    disregard....it looks like a /scripts/upcp --force did the trick.
     
Loading...

Share This Page