Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/bpni/public_html/lib/class/class.Db.MySql.php on line 31

Fatal error: Uncaught exception 'ConnectException' with message 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' in /home/bpni/public_html/lib/class/class.Db.MySql.php:38 Stack trace: #0 /home/bpni/public_html/_config/config.php(50): Db->__construct('localhost', 'bpni_plst1', 'Kq7Y3CUbBF89', 'bpni_dev', 3306) #1 /home/bpni/public_html/index.php(10): require_once('/home/bpni/publ...') #2 {main} thrown in /home/bpni/public_html/lib/class/class.Db.MySql.php on line 38