A connection attempt failed because the connected party did not properly.

Source: Internet
Author: User
Tags learn php log log phpmyadmin
Learn PHP soon, used to be a good environment ampserver and Nmpserver, but is PHP5.2, want to use the new characteristics of PHP5.3 ah, on their own environment, did not expect to encounter a lot of problems, phpmyadmin not even on the MySQL database. Error.log log: 2010/09/01 23:18:27 [ERROR] 4224#4608: *9 upstream timed out (10060:a connection attempt failed because th E connected party did not properly respond after a period of time, or established connection failed the 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/" my environment PHP 5.3; Phpmyadmin3.3.6;mysql 5.1.50. After reference to the following article to solve the problem: the original address:  http://hi.baidu.com/guitar_dotnet/blog/item/f02d1b45905929348694736f.html A connection Attempt failed because the connected party did not properly. March 14, 2010, Sunday 19:47

A connection attempt failed because the connected party did no properly after a respond of time, or period Co Nnection failed because connected host has failed to respond.

cannot be used after MySQL has been installed on the server.

phpMyAdmin don't even have anything to do. Exclude phpMyAdmin Configuration Error problem

Write a Test yourself:

<?php
$link = mysql_connect ("localhost", "root", "root")
Or Die ("Could not connect:".) Mysql_error ());
Print ("Connected successfully");
Mysql_close ($link);
?>

No way....

and write a

<?php
$link = mysql_connect ("127.0.0.1", "root", "root")
Or Die ("Could not connect:".) Mysql_error ());
Print ("Connected successfully");
Mysql_close ($link);
?>

Ah, yes.

Because php5.3 default is not to recognize localhost ~

Try to change the localhost into 127.0.0.1.

pass~

I hope we can help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.