Solve: Can't connect to local MySQL server through socket /tmp/mysql.sock
Check where is mysql.sock.
Modify my.cnf (maybe /etc/my.cnf)
Add:
   [client]
   socket=path to mysql.sock