mysql-error-2002

MySql Error will not let me connect to DB

(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? ...

CakePHP: No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)

hi, I have had a cakephp app running fine on my local machine (mac osx) for a while and then suddently I realise that I can't connect to mysql.sock. I'm getting this error: Warning (2): mysql_connect() [http://php.net/function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) [CORE/...