views:

17

answers:

2

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

Does anyone know of a solution to this problem?

A: 

Maybe this will help.

Are you sure mysqld is running and listening on port 3306? netstat -a should tell you quickly.

duffymo
i don't see it running
William
Then start it. What do you think you're connecting to? Your client needs to talk to the listener on port 3306, and that's mysqld.
duffymo
how can i get mysqld to run, it isn't running
William
http://dev.mysql.com/doc/refman/5.0/en/windows-start-command-line.html
duffymo
A: 

This may help.

http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/

Peanut
i saw this but it didnt help
William