Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 5

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 6

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 9

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 10

Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 11

Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 11

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 1018

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nuscopec/nuscope.com/invoice/include/sql_queries.php on line 1018

===========================================
Simple Invoices database connection problem
===========================================
Could not connect to the Simple Invoices database

Please refer to the following Mysql error for for to fix this: ERROR :Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

If this is an Access denied error please make sure that the db_host, db_name, db_user, and db_password in config/config.php are correct
===========================================