I have come across this problem several time while sorting through this forum but none of the solutions seem to work for me. This is the following error message whether I am connecting through phpMyAdmin or locally (no matter what login I use):
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(111)

I have even tried the solution I found on almost every posting in regards to this problem:
Try restarting mysql this way:
/etc/inet.d/mysql start

or else

the path to mysqld/mysqld &

eg.
/usr/local/bin/mysqld &

That does not work either. HELP!!!!