:(

SQLSTATE[HY000] [2002] Connection refused

错误位置

FILE: /alidata/www/wanderchem/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 109

TRACE

#0 /alidata/www/wanderchem/ThinkPHP/Library/Think/Db/Driver.class.php(109): E('SQLSTATE[HY000]...')
#1 /alidata/www/wanderchem/ThinkPHP/Library/Think/Db/Driver.class.php(1064): Think\Db\Driver->connect()
#2 /alidata/www/wanderchem/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(47): Think\Db\Driver->initConnect(true)
#3 /alidata/www/wanderchem/ThinkPHP/Library/Think/Model.class.php(134): Think\Db\Driver\Mysql->getFields('wander_product')
#4 /alidata/www/wanderchem/ThinkPHP/Library/Think/Model.class.php(122): Think\Model->flush()
#5 /alidata/www/wanderchem/ThinkPHP/Library/Think/Model.class.php(1434): Think\Model->_checkTableInfo()
#6 /alidata/www/wanderchem/ThinkPHP/Library/Think/Model.class.php(97): Think\Model->db(0, '', true)
#7 /alidata/www/wanderchem/ThinkPHP/Common/functions.php(621): Think\Model->__construct('Product', '', '')
#8 /alidata/www/wanderchem/WanderChemCN/Home/Controller/ProductController.class.php(164): M('Product')
#9 [internal function]: Home\Controller\ProductController->showProductDetail()
#10 /alidata/www/wanderchem/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\ProductController))
#11 /alidata/www/wanderchem/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#12 /alidata/www/wanderchem/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#13 /alidata/www/wanderchem/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#14 /alidata/www/wanderchem/index.php(26): require('/alidata/www/wa...')
#15 {main}