:(

SQLSTATE[HY000] [1049] Unknown database 'kens'

错误位置

FILE: /www/wwwroot/kens/thinkphp/library/think/db/driver.php  LINE: 114

TRACE

#0 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(1184): think\db\Driver->connect()
#1 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(1131): think\db\Driver->initConnect()
#2 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(456): think\db\Driver->quote('goods')
#3 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(663): think\db\Driver->parseValue('goods')
#4 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(581): think\db\Driver->parseWhereItem('`alias`', 'goods')
#5 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(1079): think\db\Driver->parseWhere(Array)
#6 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(1060): think\db\Driver->parseSql('SELECT%DISTINCT...', Array)
#7 /www/wwwroot/kens/thinkphp/library/think/db/driver.php(1039): think\db\Driver->buildSelectSql(Array)
#8 /www/wwwroot/kens/thinkphp/library/think/model.php(653): think\db\Driver->select(Array)
#9 /www/wwwroot/kens/application/common.php(98): think\Model->find()
#10 /www/wwwroot/kens/application/index/behavior/action_begin.php(32): getModel('goods')
#11 /www/wwwroot/kens/application/index/behavior/action_begin.php(11): index\behavior\ActionBegin->defineModel()
#12 /www/wwwroot/kens/thinkphp/library/think/hook.php(125): index\behavior\ActionBegin->run(Array)
#13 /www/wwwroot/kens/thinkphp/library/think/hook.php(97): think\Hook::exec('index\\behavior\\...', 'action_begin', Array)
#14 /www/wwwroot/kens/thinkphp/library/think/app.php(95): think\Hook::listen('action_begin', Array)
#15 /www/wwwroot/kens/thinkphp/start.php(51): think\App::run(Array)
#16 /www/wwwroot/kens/public/index.php(22): require('/www/wwwroot/ke...')
#17 {main}