Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /var/www/andor/data/www/ on line 162 MySQL Fatal Error MySQL Error!

The Error returned was:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Error Number:

Warning: Unknown: open(/var/www/andor/data/bin-tmp/sess_f3lccp52uiurtmtmv22sg7arg4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/www/andor/data/bin-tmp) in Unknown on line 0