ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp

解决办法:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock