ERROR 2002: Can't connect to local MySQL server through sock

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
bouboul
Forum Commoner
Posts: 28
Joined: Sat Oct 25, 2003 4:08 am

ERROR 2002: Can't connect to local MySQL server through sock

Post by bouboul »

hello,
i'm facing a new problem now i'm getting the following :
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
when i'm trying to connect mysel to mysql server, i think is because i removed mysql in init.d , in /var/lib there is no mysql and even in /usr/sbin there is no mysql daemon , what can i do to make mysql work again?
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

have a look in /etc/rc.d/init.d for the mysql daemon
bouboul
Forum Commoner
Posts: 28
Joined: Sat Oct 25, 2003 4:08 am

ERROR 2002: Can't connect to local MySQL server through sock

Post by bouboul »

in /etc/init.d there is no mysql daemon. i want to reinstall it from scratch using the rpms,
pleaz help
Post Reply