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

Warning: mysql_error() expects parameter 1 to be resource, boolean given in /home/thegetp/public_html/sql1.php on line 5
can not connect to database