我的网站使用WAMP在Windows XP上部署。我看到这个错误,从最近几天,每件事情都很好。我不知道问题出在哪里。一些好友的帮助
问题在哪里?我的代码或服务器端问题? 第7行警告:mysql_connect()[function.mysql-connect]:[2002]仅 每个套接字地址(协议/网络地址/端口)的一种用法是 通常允许。 (尝试通过tcp:// localhost:3306连接)在第7行的D:\ wamp \ www \ ESP \ ESP.php
此代码位于
$con = mysql_connect($localhost,$root,$rootpass);//this is the line number 7
and it is unchanged from last many days. so why error now is showing?
和
$localhost = "localhost";