代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
[color=#FF0000]<?php
$id = mysql_connect("localhost","root","123456") or die("sorry,faild");
?>[/color]
</body>
</html>
为什么我把localhos换成我的IP:192.168.1.112就不行了呢,提示错误为:Warning: mysql_connect() [function.mysql-connect]: Host '001A0A21A54A' is not allowed to connect to this MySQL server in F:\MyWeb\1.php on line 10
sorry,faild
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
[color=#FF0000]<?php
$id = mysql_connect("localhost","root","123456") or die("sorry,faild");
?>[/color]
</body>
</html>
为什么我把localhos换成我的IP:192.168.1.112就不行了呢,提示错误为:Warning: mysql_connect() [function.mysql-connect]: Host '001A0A21A54A' is not allowed to connect to this MySQL server in F:\MyWeb\1.php on line 10
sorry,faild
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货