$con1 = mysql_connect("xxx", "yyy", "zzz",'xyz');
$data = mysql_query("SELECT department_name,id,status FROM xyz.department");
$values = Array();
while ($row = mysql_fetch_assoc($data)) {
echo $row['department_name'] = mysql_real_escape_string($row['department_name']); }
警告:mysql_connect()[function.mysql-connect]:Host' xyz'由于许多连接错误而被阻止;使用' mysqladmin flush-hosts'解锁在C:\ xampp \ htdocs \ hi.php
中我正在使用Xampp Server。
答案 0 :(得分:1)
您需要运行:
mysqladmin flush-hosts
针对您的MySQL服务器..或重新启动它也可以。
请参阅: http://dev.mysql.com/doc/refman/5.6/en/blocked-host.html