Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    601

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

    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. #2
    Member
    Join Date
    Mar 2003
    Posts
    601

    Default

    disregard....it looks like a /scripts/upcp --force did the trick.

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 06-15-2010, 05:31 PM
  2. Replies: 13
    Last Post: 06-15-2010, 05:31 PM
  3. Replies: 2
    Last Post: 06-22-2009, 09:30 AM
  4. Can't connect to local MySQL server through socket '/tmp/mysql.sock'
    By gopederick in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-17-2004, 03:06 PM
  5. Replies: 0
    Last Post: 06-27-2004, 03:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube