MySQL Connection Error
Finally found the solution in the Ubuntu forums:
ln -s /etc/mysql/my.cnf /etc/my.cnf
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ [Archive] – Ubuntu Forums.
Another problem … same error in phpMyAdmin cause the default for socket is “/tmp/mysql.sock”, you have to change that in your config file (config/config.inc.php):
[sourcecode language='php']
$cfg['Servers'][$i]['connect_type'] = ‘socket’;
$cfg['Servers'][$i]['socket'] = ‘/var/run/mysqld/mysqld.sock’;
[/sourcecode]