代码:
放在htdocs里面;
<?php
$conn=mysql_connect("localhost","root"," ");
if($conn){
echo "true";
}
else
{
echo "false";
}
?>错误(这个过程相当长):Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in F:\myenv\apache\htdocs\text.php on line 2Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in F:\myenv\apache\htdocs\text.php on line 2Fatal error: Maximum execution time of 60 seconds exceeded in F:\myenv\apache\htdocs\text.php on line 2
谢谢!!!!
放在htdocs里面;
<?php
$conn=mysql_connect("localhost","root"," ");
if($conn){
echo "true";
}
else
{
echo "false";
}
?>错误(这个过程相当长):Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in F:\myenv\apache\htdocs\text.php on line 2Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in F:\myenv\apache\htdocs\text.php on line 2Fatal error: Maximum execution time of 60 seconds exceeded in F:\myenv\apache\htdocs\text.php on line 2
谢谢!!!!
看看能否连上?