:(

SQLSTATE[HY000] [2002] Connection refused

错误位置

FILE: /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 105

TRACE

#0 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php(105): E('SQLSTATE[HY000]...')
#1 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver.class.php(1037): Think\Db\Driver->connect()
#2 /data/www/cosunter/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(50): Think\Db\Driver->initConnect(true)
#3 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(132): Think\Db\Driver\Mysql->getFields('gst_config')
#4 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(120): Think\Model->flush()
#5 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(1431): Think\Model->_checkTableInfo()
#6 /data/www/cosunter/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, '', true)
#7 /data/www/cosunter/ThinkPHP/Common/functions.php(564): Think\Model->__construct('Config', '', '')
#8 /data/www/cosunter/Application/Common/Api/ConfigApi.class.php(20): M('Config')
#9 /data/www/cosunter/Application/Common/Common/function.php(875): Common\Api\ConfigApi::lists()
#10 /data/www/cosunter/Application/Home/Controller/HomeController.class.php(27): api('Config/lists')
#11 /data/www/cosunter/ThinkPHP/Library/Think/Controller.class.php(41): Home\Controller\HomeController->_initialize()
#12 /data/www/cosunter/ThinkPHP/Common/functions.php(624): Think\Controller->__construct()
#13 /data/www/cosunter/ThinkPHP/Library/Think/App.class.php(81): controller('Service', '')
#14 /data/www/cosunter/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#15 /data/www/cosunter/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#16 /data/www/cosunter/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#17 /data/www/cosunter/index.php(6): require('/data/www/cosun...')
#18 {main}