今天热门
热点:

windows上运行PHP+mysql的问题,phpmysql


windows2003,apache IIS同时运行,mysql5.3,常常爆出连接错误。原以为是IIS运行PHP有问题,换了apache,发现一样,请教下是什么问题,该如何解决? Fatal error: Uncaught exception 'Exception' with message 'Connect failed: Can't connect to MySQL server on 'localhost' (10061)' in D:\wwwroot\include\library\DB.class.php:46 Stack trace: #0 D:\wwwroot\include\library\DB.class.php(22): DB->__construct() #1 D:\wwwroot\include\library\DB.class.php(81): DB::Instance() #2 D:\wwwroot\include\library\DB.class.php(417): DB::EscapeString('city') #3 D:\wwwroot\include\library\DB.class.php(153): DB::BuildCondition(Array) #4 D:\wwwroot\include\function\common.php(657): DB::LimitQuery('category', Array) #5 D:\wwwroot\include\function\common.php(643): option_category('city', false, true) #6 D:\wwwroot\app.php(33): option_hotcategory('city', false, true) #7 D:\wwwroot\index.php(2): require_once('D:\wwwroot\app....') #8 {main} thrown in D:\wwwroot\include\library\DB.class.php on line 46

解决方案

您好!

 

造成IIS访问错误的原因很多,根据现有的信息我们难以直接给出解决问题的方法。为了更好地分析您的问题,请您帮忙提供以下信息:

 

1. IIS的具体版本是5.0还是6.0

 

2. 出现该问题的时候是访问某些特定的出现问题,还是访问所有的网页出现问题?

 

2. 请将C:\WINDOWS\system32\LogFiles\W3SVC1文件夹中,发生该错误时的日志信息,并将日志信息贴到论坛中,以便我们找出问题的所在。

例如:
2007-02-28 06:52:40 192.168.12.1 OPTIONS / - 80 - 192.168.12.4 Microsoft-WebDAV-MiniRedir/5.1.2600 200 0 0
2007-02-28 06:52:40 192.168.12.1 PROPFIND /sysvol - 80 - 192.168.12.4 Microsoft-WebDAV-MiniRedir/5.1.2600 501 0 0

 

希望我的回答对您有所帮助,如果您还有什么问题,请您再和我们联系。

www.zrccd.nettrue/topics/20180111/16519.htmlTechArticlewindows上运行PHP+mysql的问题,phpmysql windows2003,apache IIS同时运行,mysql5.3,常常爆出连接错误。原以为是IIS运行PHP有问题,换了apache,发现一样,请教下是什么问题,该如何解决? Fatal e...

相关文章

    暂无相关文章

用户评论

大家都在看