Script Execution Error

The MySQL extension could not connect to the database. MySQL reported the error as: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

File: /core/KHXC/KHXC.php Line: 502 Error Number: 256