Sorry if this is the wrong place to post. I upgraded to 12.04 and mysql stopped working. I re-installed mysql server package. When I try to log on to database I get:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
That file (mysqld.sock) doest not exist. Yet mysqld process is up and running. I see it when I go ps -ef.
Shutdown and restart mysql works fine, I just can't log on. I have my database on a directory that is not the default installation data directory. I added my path to the apparmor configuration file.