Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2). I manage to get around that by doing
service mysqld restart. That's a little bit tedious, but I can cope with it. It says
Stopping MySQL: [Failed]and then
Starting MySQL: [OK]so that's good enough.
The real interesting one is this allows me to connect from command line, and through my PHP web applications. But when I try through Ruby on Rails I get (for example)
Mysql::Error: Lost connection to MySQL server during query: SELECT COUNT(*) FROM tasks. The database is not corrupt and I can run that through mysql command line with no problems.