SQL Socket Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan Powell

    SQL Socket Error

    Hello all

    I am a newbie to Linux, Apache and mySQL etc. I am running a standard RH9
    build with yum updates. All appears to be working ok except one aspect.
    Simple database (indexed 2 table)activity works but on a more sophisticated
    existing database accessed through a perl script I get this error (taken
    from logs): -

    [Tue Apr 27 20:22:52 2004] [error] [client 192.168.0.12] [Tue Apr 27
    20:22:52 2004] lbf.cgi: DBI
    connect('userna me_disney:local host','username _lettuce',...) failed: Can't
    connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
    (13) at /home/username/public_html/dating/cgi-bin/scripts/new_database.pl
    line 6, referer: http://www.awebsite.loc/

    I have checked that the daemon is up and all standard checks recommended
    from the mySQL site show the socket is connecting ok and for TCP/IP on port
    3306 etc....

    Any ideas please? Thanks in advance

    Alan



Working...