Home >Backend Development >PHP Tutorial >随机出现mysql不能连接的有关问题

随机出现mysql不能连接的有关问题

WBOY
WBOYOriginal
2016-06-13 10:09:45835browse

随机出现mysql不能连接的问题
我的环境是IIS 6.0 + mysq 5.0 + PHP 5.2.9,会随机出现Could not connect: Can't connect to MySQL server on '127.0.0.1' (10061)的错误,刷新就又连接上了,没事了
望大家提出建设性建议,不要说IIS是错误之类话,我想听解决办法,谢谢

------解决方案--------------------
如果实在找不到办法,那就用try catch,没连接上的话继续链接(当然这个方法是被逼无奈地情况下,最好还是要找到具体出现了啥子错误)
------解决方案--------------------
关键词:“mysql 10061”,信息还是很多的,下边的这个可能会靠点谱。
http://blog.sina.com.cn/s/blog_485474590100h8um.html
------解决方案--------------------
iis的问题吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn