Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/wwwsecr/public_html/includes/BancoDeDados.php on line 6

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /home/wwwsecr/public_html/includes/BancoDeDados.php on line 30
Erro!

# 2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

SELECT * FROM visitantes WHERE data=16/12/2017