:)

SQLSTATE[HY000] [2002] Connection refused

错误位置

FILE: /home/huamingcandle/public_html/simplewind/Core/Library/Think/Db/Driver.class.php  LINE: 109

TRACE

#0 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Db/Driver.class.php(109): E('SQLSTATE[HY000]...')
#1 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Db/Driver.class.php(1075): Think\Db\Driver->connect()
#2 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Db/Driver/Mysql.class.php(47): Think\Db\Driver->initConnect(true)
#3 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Model.class.php(134): Think\Db\Driver\Mysql->getFields('cmf_ads')
#4 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Model.class.php(122): Think\Model->flush()
#5 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Model.class.php(1454): Think\Model->_checkTableInfo()
#6 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Model.class.php(97): Think\Model->db(0, '', true)
#7 /home/huamingcandle/public_html/simplewind/Core/Common/functions.php(621): Think\Model->__construct('Ads', '', '')
#8 /home/huamingcandle/public_html/application/Common/Common/function.php(4090): M('Ads')
#9 /home/huamingcandle/public_html/data/runtime/Cache/Portal/833760ca321fd8196bc49e3d12fe293f.php(10): getPsitionAds(1)
#10 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Storage/Driver/File.class.php(80): include('/home/huamingca...')
#11 [internal function]: Think\Storage\Driver\File->load('/home/huamingca...', Array, NULL, 'tpl')
#12 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
#13 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Template.class.php(77): Think\Storage::__callstatic('load', Array)
#14 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Template.class.php(77): Think\Storage::load('/home/huamingca...', Array, NULL, 'tpl')
#15 /home/huamingcandle/public_html/simplewind/Core/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch('themes/simplebo...', Array, '')
#16 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Hook.class.php(153): Behavior\ParseTemplateBehavior->run(Array)
#17 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'view_parse', Array)
#18 /home/huamingcandle/public_html/simplewind/Core/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array)
#19 /home/huamingcandle/public_html/simplewind/Core/Library/Think/View.class.php(72): Think\View->fetch('themes/simplebo...', '', '')
#20 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Controller.class.php(56): Think\View->display('themes/simplebo...', '', '', '', '')
#21 /home/huamingcandle/public_html/application/Common/Controller/HomebaseController.class.php(109): Think\Controller->display('themes/simplebo...', '', '')
#22 /home/huamingcandle/public_html/application/Portal/Controller/IndexController.class.php(102): Common\Controller\HomebaseController->display(':404')
#23 [internal function]: Portal\Controller\IndexController->error_html()
#24 /home/huamingcandle/public_html/simplewind/Core/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Portal\Controller\IndexController))
#25 /home/huamingcandle/public_html/simplewind/Core/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Portal\Controller\IndexController), 'error_html')
#26 /home/huamingcandle/public_html/simplewind/Core/Library/Think/App.class.php(204): Think\App::exec()
#27 /home/huamingcandle/public_html/simplewind/Core/Library/Think/Think.class.php(121): Think\App::run()
#28 /home/huamingcandle/public_html/simplewind/Core/ThinkPHP.php(97): Think\Think::start()
#29 /home/huamingcandle/public_html/index.php(58): require('/home/huamingca...')
#30 {main}