Error in MySQL Code

query -> .
Eroor -> Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
File -> Db_Mysql.php.
Line -> 59.