Database Exception (2002)

Unable to connect to MySQL server: 'localhost'

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