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
Changing "mysql://username:password@/databasename" to "mysql://username:password@localhost/databasename" fixed the issue for me.