A connection attempt failed because the connected party did not properly ..
来源:互联网 发布:湖南软件开发公司 编辑:程序博客网 时间:2024/06/05 18:40
学PHP不久,以前用的是人家搭好的环境AMPServer和NMPServer,但是是PHP5.2的,想用PHP5.3的新特性啊,就自己搭环境,没想到遇到的问题还真不少,phpMyAdmin连不上MySQL数据库。error.log中日志为:
2010/09/01 23:18:27 [error] 4224#4608: *9 upstream timed out (10060: 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) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /phpMyAdmin/index.php?token=ec74c92d2e66643912bfaa3633064ccb HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "http://localhost/phpMyAdmin/"
我的环境 php 5.3 ;phpMyAdmin3.3.6;MySQL 5.1.50。
后参考以下文章解决了问题:
原文地址: http://hi.baidu.com/guitar_dotnet/blog/item/f02d1b45905929348694736f.html
A connection attempt failed because the connected party did not properly ..
2010年03月14日 星期日 19:47
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.
服务器上安装完mysql后 无法使用?
phpmyadmin啥都连不上~先排除phpmyadmin的配置错误问题
自己写个测试:
“
<?php
$link = mysql_connect("localhost", "root", "root")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
”
不行?。。。
再写个
“
<?php
$link = mysql_connect("127.0.0.1", "root", "root")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
”
啊哈~通过了
因为php5.3默认是不认localhost的~
把localhost改成127.0.0.1试试?
pass~
希望可以帮上大家
- A connection attempt failed because the connected party did not properly ..
- upstream timed out (10060: A connection attempt failed because the connected party did not properly
- A connection attempt failed because the connected party did not (trying to connect via tcp://localho
- The security settings could not be applied to the database because the connection has failed w
- The WebLogic Server did not start up properly.
- Form submission canceled because the form is not connected 异常
- Form submission canceled because the form is not connected 解决办法
- Form submission canceled because the form is not connected
- WCF问题集锦:ReadResponse failed: The server did not return a complete response for this request.
- The Server Object construction attempt has failed because the Startup Timeout Interval has elapsed解决
- An ActiveRecord class (XXXXXXXXX) was used but the framework seems not properly initialized. Did you
- ERRO:cannot launch the modelsim-altera software because you did not specify the path...
- Login failed for user 'username'. The user is not associated with a trusted SQL Server connection
- Chrome报表单提交错误,Form submission canceled because the form is not connected
- AJAX POST 后跳转页面Form submission canceled because the form is not connected的问题解决
- jquery使用 Form submission canceled because the form is not connected
- jquery使用 Form submission canceled because the form is not connected
- jquery使用 Form submission canceled because the form is not connected
- [有感]_第十六个9月1号
- 使用cxGrid对数据集进行Sort和Locate操作
- Linux下安装USB网卡驱动
- windows安全模型--令牌(token)和安全描述符
- Define the input/output port name for the Inlined C++ S-function block in Matlab Simulink
- A connection attempt failed because the connected party did not properly ..
- 几则SQLServer操作技巧
- 母版页的工作原理
- 创建一个弹出时不会立即得到焦点的窗口
- 堆和栈的区别
- 海量数据库的查询优化及分页算法方案
- 动态建立计算、参照字段的方法
- 重构列表
- 乔布斯演讲语录:Your time is limited, so don't waste it