mysql.sock error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohanK
    New Member
    • Jan 2007
    • 13

    mysql.sock error

    Hi there, I really need some help setting up mySQL.
    I'm running redhat enteprise linux 3.1 and the following rpm's are installed,
    Code:
    mysql-3.23.58-16.RHEL3.1
    libdbi-dbd-mysql-0.6.5-5
    mysql-devel-3.23.58-16.RHEL3.1
    Now my problem is that every time I try to connect to mysql I get the following error:

    Code:
    ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    Thanks
    Johan Kestlmeier
  • imu
    New Member
    • Mar 2007
    • 2

    #2
    hello john,
    mysql.sock file is used to TCP/IP connection so make the softlink in /tmp

    ln -s /var/lib/bin/mysql/mysql.sock /tmp/mysql.sock


    /tmp is change as per your system requirement.

    Comment

    Working...