Error establishing a database connection

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)