Heim  >  Artikel  >  Backend-Entwicklung  >  随机出现mysql不能连接的有关问题

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

WBOY
WBOYOriginal
2016-06-13 13:47:56702Durchsuche

随机出现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的问题吧

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn