Wow.. this post is really old and I'm not sure if Troy would be able to benefit from it but someone else looking for answers might.. so..I just had the same problem and while searching for answers I came across this post. And well thanks to all, for replying because the answer is almost localhost, but instead you would write the generic ip address. For eg:
$sqlHost="127.0.0.1";
$sqlUser="root";
$sqlPassword="passIfAny";
if(!($linkId=mysql_pconnect($sqlHost,$sqlUser,$sqlPassword))){
die("still could not connect");
}else{
echo("connected.. do what you want!");
}//End if