Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /home/renders/lib/classes/mysql.class.php on line 31

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/renders/lib/classes/mysql.class.php on line 35

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/renders/lib/classes/mysql.class.php on line 35

MySQL error

File: /home/renders/default_www/index.php on line 12
in MySQL.MySQL()

Arguments: Array
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (2002)