Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/host/public_html/first.php on line 48

Cannot connect to database, check if username, password and host are correct.
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)