mysql_pconnect(localhost, megalotto, dbpass); Couldn't connect to MySQL, Error if any was:2002 ,Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)