在PHP页面上只显示了2002年每个套接字地址错误的一个用法

时间:2015-07-23 11:06:30

标签: php mysql server wamp

我的网站使用WAMP在Windows XP上部署。我看到这个错误,从最近几天,每件事情都很好。我不知道问题出在哪里。一些好友的帮助

  

警告:mysql_connect()[function.mysql-connect]:[2002]仅   每个套接字地址(协议/网络地址/端口)的一种用法是   通常允许。       (尝试通过tcp:// localhost:3306连接)在第7行的D:\ wamp \ www \ ESP \ ESP.php

问题在哪里?我的代码或服务器端问题?

第7行

此代码位于

$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";

0 个答案:

没有答案