无法连接数据库:php_network_getaddresses: getaddrinfo failed: Name or service not known
> /app/base/lib/db/connections.php:184
> | #0 | trigger_error(...string(93) "无法连接数据库:php_network_getaddresses: getaddrinfo failed: Name or service not known"
,'256') | connections.php:184 |
| #1 | base_db_connections->_connect(...string(44) "rm-uf676d7wg794869r9o.mysql.rds.aliyuncs.com"
,'ecstore2','Ecstore123!@#','ecstore2') | connections.php:173 |
| #2 | base_db_connections->_rw_conn() | connections.php:158 |
| #3 | base_db_connections->_ro_conn() | connections.php:98 |
| #4 | base_db_connections->select(...string(74) "SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true' LIMIT 0, 1"
) | connections.php:147 |
| #5 | base_db_connections->selectlimit(...string(63) "SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true'"
,'1','0') | connections.php:137 |
| #6 | base_db_connections->selectrow(...string(63) "SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true'"
) | currency.php:153 |
| #7 | ectools_mdl_currency->getDefault() | currency.php:192 |
| #8 | ectools_mdl_currency->getFormat() | product.php:22 |
| #9 | b2c_ctl_site_product->__construct(object(appobject(app)#10 (23) {
["__render":"app":private]=>
NULL
["__router":"app":private]=>
NULL
["__define":"app":private]=>
NULL
["__taskrunner":"app":private]=>
NULL
["__checkVaryArr":"app":private]=>
array(0) {
}
["__langPack":"app":private]=>
array(0) {
}
["__installed":"app":private]=>
NULL
["__actived":"app":private]=>
NULL
["__setting":"app":private]=>
NULL
["app_id"]=>
string(3) "b2c"
["app_dir"]=>
string(26) "/data/www/ecstore2/app/b2c"
["public_app_dir"]=>
string(33) "/data/www/ecstore2/public/app/b2c"
["res_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/statics"
["favicon"]=>
string(51) "http://www.popartbeauty.com/public/app/site/statics"
["res_full_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/statics"
["lang_url"]=>
string(47) "http://www.popartbeauty.com/public/app/b2c/lang"
["lang_full_url"]=>
string(47) "http://www.popartbeauty.com/public/app/b2c/lang"
["widgets_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/widgets"
["widgets_full_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/widgets"
["res_dir"]=>
string(41) "/data/www/ecstore2/public/app/b2c/statics"
["widgets_dir"]=>
string(41) "/data/www/ecstore2/public/app/b2c/widgets"
["lang_dir"]=>
string(38) "/data/www/ecstore2/public/app/b2c/lang"
["_lang_resource"]=>
NULL
}
)) | kernel.php:460 |
| #10 | kernel::single('b2c_ctl_site_product',object(appobject(app)#10 (23) {
["__render":"app":private]=>
NULL
["__router":"app":private]=>
NULL
["__define":"app":private]=>
NULL
["__taskrunner":"app":private]=>
NULL
["__checkVaryArr":"app":private]=>
array(0) {
}
["__langPack":"app":private]=>
array(0) {
}
["__installed":"app":private]=>
NULL
["__actived":"app":private]=>
NULL
["__setting":"app":private]=>
NULL
["app_id"]=>
string(3) "b2c"
["app_dir"]=>
string(26) "/data/www/ecstore2/app/b2c"
["public_app_dir"]=>
string(33) "/data/www/ecstore2/public/app/b2c"
["res_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/statics"
["favicon"]=>
string(51) "http://www.popartbeauty.com/public/app/site/statics"
["res_full_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/statics"
["lang_url"]=>
string(47) "http://www.popartbeauty.com/public/app/b2c/lang"
["lang_full_url"]=>
string(47) "http://www.popartbeauty.com/public/app/b2c/lang"
["widgets_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/widgets"
["widgets_full_url"]=>
string(50) "http://www.popartbeauty.com/public/app/b2c/widgets"
["res_dir"]=>
string(41) "/data/www/ecstore2/public/app/b2c/statics"
["widgets_dir"]=>
string(41) "/data/www/ecstore2/public/app/b2c/widgets"
["lang_dir"]=>
string(38) "/data/www/ecstore2/public/app/b2c/lang"
["_lang_resource"]=>
NULL
}
)) | app.php:76 |
| #11 | app->controller('site_product') | router.php:602 |
| #12 | site_router->default_dispatch() | router.php:492 |
| #13 | site_router->dispatch('product-albums-209') | kernel.php:278 |
| #14 | kernel::boot() | index.php:5 |