I have this problem when I am trying to run my PHP MySQL script. When I try to run my .php file this is what I get.
mysql_connect(): No connection could be m
Well sometimes even using localhost without any port number can help. E.g.
$conn = mysql_connect("localhost","root","");//for no password