代码:
放在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
谢谢!!!!
解决方案 »
- mysql error 1042 can not get hostname for your address
- mysql 触发器的问题
- 求达人解决。。数据库导入问题
- mysql 数据导入出错 如何全部回滚
- mysql 将查询结果分段显示
- 关于MySQL优化----wait_timeout和interactive_timeout的设置问题的疑惑
- 如何给MyPhpAdmin,添加“只读”用户
- cannot start service Error 0?(50分)
- 关于在java中mysql的事务级别的问题
- 数据库链接错误10038
- 刚准备学Mysql,求助高手.
- [收集]mysql 无法联接故障现象及原因
看看能否连上?