mysql日志
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
这篇文章解决了我的问题,推广下
http://www.cnblogs.com/ratooner/p/4136480.html