Unrecoverable Error

The script has experienced an error that it has been unable to recover from.

Could not connect to database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)