无法连接数据库:Connection refused

>  /custom/base/lib/db/connections.php:176
#0trigger_error(...无法连接数据库:Connection refused,'256')connections.php:176
#1base_db_connections->_connect('127.0.0.1','ks_ecstore','1ks_ecstore1','ks_ecstore')connections.php:165
#2base_db_connections->_rw_conn()connections.php:150
#3base_db_connections->_ro_conn()connections.php:90
#4base_db_connections->select(...select prefix, `key`, value from sdb_base_kvstore where prefix like 'setting/%')setting.php:12
#5base_syscache_setting->get_data()syscache.php:46
#6base_ego_syscache->__construct('setting')syscache.php:26
#7base_ego_syscache::instance('setting')app.php:127
#8app->getConf('sitemaps')router.php:80
#9site_router->__construct(object(appapp::__set_state(array( '__render' => NULL, '__router' => NULL, '__define' => NULL, '__taskrunner' => NULL, '__appConf' => array ( ), '__checkVaryArr' => array ( ), '__appSetting' => array ( ), '__langPack' => array ( ), '__installed' => NULL, '__actived' => NULL, 'app_id' => 'site', 'app_dir' => '/srv/www/www.czx.com/app/site', 'res_url' => 'http://xuzhou.czxshop.com/app/site/statics', 'res_full_url' => 'http://xuzhou.czxshop.com/app/site/statics', 'lang_url' => 'http://xuzhou.czxshop.com/app/site/lang', 'lang_full_url' => 'http://xuzhou.czxshop.com/app/site/lang', 'widgets_url' => 'http://xuzhou.czxshop.com/app/site/widgets', 'widgets_full_url' => 'http://xuzhou.czxshop.com/app/app/site/widgets', 'res_dir' => '/srv/www/www.czx.com/app/site/statics', 'widgets_dir' => '/srv/www/www.czx.com/app/site/widgets', 'lang_dir' => '/srv/www/www.czx.com/app/site/lang', '_lang_resource' => NULL, ))))app.php:85
#10app->router()kernel.php:161
#11kernel::boot()index.php:5