Unable to connect. Check your connection parameters.

Given Error:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)