[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-security] RaQ550 : mysql : Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)



I receive the following error when testing mysql on a Cobalt RaQ550 through
one of the diagnostic pages found at http://[HOSTNAME]/caspsamp or in my
case http://box.irapture.com/caspsamp/sqlexecute.asp:

    ADODB.Connection.1 error '80004005'
    SQLState: S1000
    Native Error Code: 2002
    [TCX][MyODBC]Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)

I found a possible solution at
http://developer.chilisoft.com/kb/kb_display.asp?200110243

I tried the proposed solution from root and from /tmp:
    /tmp> ln -s /var/lib/mysql/mysql.sock mysql.sock

I then received the following response:
    ln: 'mysql.sock': File exists

The file mysql.sock did exist before I ran this command. Is it safe to
delete this file and then run this command again in order to create a
shortcut to the real file?

Jacob Barr
jakeb@xxxxxxxxxxxx