Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/tsarin/library/db_mysql.inc on line 72

Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/tsarin/library/db_mysql.inc on line 72
Database error: connect(localhost, root, $Password) failed.
MySQL Error: ()
Session halted.