Script Execution Error

The MySQL extension could not connect to the database. MySQL reported the error as: Lost connection to MySQL server at 'reading initial communication packet', system error: 104

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