The connection failure of mysql occurs randomly.

Source: Internet
Author: User
The mysql cannot be connected at random. in my environment, IIS6.0 + mysq5.0 + PHP5.2.9, the Couldnotconnect: Can't connect to mysqlserveron '2017. 0.0.1 '(127, the mysql cannot be connected at random.
My environment is IIS 6.0 + mysq 5.0 + PHP 5.2.9, and the "cocould not connect: Can't connect to MySQL server on" 127 will appear randomly. 0.0.1 '(10061) error, refresh and connect again, OK
I hope you can give us some constructive suggestions. do not say that IIS is incorrect. I want to hear the solution. thank you.

------ Solution --------------------
If you cannot find a solution, use try catch. if the connection is not connected, continue the link (of course, this method is forced to helpless, and it is best to find out the specific error)
------ Solution --------------------
Keywords: "mysql 10061", there is still a lot of information, the following may rely on the dot spectrum.
Http://blog.sina.com.cn/s/blog_485474590100h8um.html
------ Solution --------------------
About iis

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.