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

Re: [cobalt-users] mySQL Error 2002?!



mastermoe wrote:
Hi,

I had installed mySQL on a RAQ4, it was working fine and for some reason
decided to stop... I get this error when I try to connect via a PHP script;

ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111)

I also get the error when I try to connect using SSH (By typing 'mysql' as
root).

Any thoughts?

Thank you,



error 2002 is most of the time a not-running mysql server, there are several patches out there that do nasty things to your mys2ql server.
this may be of help:

http://www.depopo.net/projects/kb/kb_show.asp?id=59

the command to auto-start mysql for the raq4 may, or may not be the exact same, i do not have a r4, so i cant test it for you.

you could also first try a manual start with:
/etc/rc.d/init.d/mysql start

Bob.