Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/usersal/public_html/lasaltadehoy/administrar/conecta.inc on line 10

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/usersal/public_html/lasaltadehoy/estadisticas.php on line 12
SQL: SELECT AVG(desocupados) AS desocupados, AVG(ocupados) AS ocupados, AVG(subsidios) AS subsidios, AVG(mortalidad) AS mortalidad, AVG(deficit) AS deficit, AVG(noasiste) AS noasiste, AVG(asiste) AS asiste, AVG(pobreza) AS pobreza FROM usersal_romero.items WHERE tipo = 1
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)