View LinuxUbuntu
Submitted by Chris Cotsapas:
In Ubuntu 6.06 (Dapper Drake), you may find that you get errors saying that mysql.sock doesn’t not exist.
Here’s how to fix it – in a terminal type:
ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
see also Linux Debian