:(

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2)

错误位置

FILE: /data/web/Core/Library/Think/Db/Driver.class.php  LINE: 128

TRACE

#0 /data/web/Core/Library/Think/Db/Driver.class.php(128): E('SQLSTATE[HY000]...')
#1 /data/web/Core/Library/Think/Db/Driver.class.php(1197): Think\Db\Driver->connect()
#2 /data/web/Core/Library/Think/Db/Driver/Mysql.class.php(53): Think\Db\Driver->initConnect(true)
#3 /data/web/Core/Library/Think/Model.class.php(156): Think\Db\Driver\Mysql->getFields('sr_language')
#4 /data/web/Core/Library/Think/Model.class.php(143): Think\Model->flush()
#5 /data/web/Core/Library/Think/Model.class.php(1651): Think\Model->_checkTableInfo()
#6 /data/web/Core/Library/Think/Model.class.php(117): Think\Model->db(0, '', true)
#7 /data/web/Core/Common/functions.php(694): Think\Model->__construct('language', '', '')
#8 /data/web/Application/Common/Common/function.php(97): M('language')
#9 /data/web/Application/Common/Common/extend.php(550): get_result('language', Array, 'sort asc')
#10 /data/web/Application/Common/Behavior/LangBehavior.class.php(18): lang_full_data()
#11 /data/web/Application/Common/Behavior/LangBehavior.class.php(14): Common\Behavior\LangBehavior->lang_list()
#12 /data/web/Core/Library/Think/Hook.class.php(134): Common\Behavior\LangBehavior->run(NULL)
#13 /data/web/Core/Library/Think/Hook.class.php(100): Think\Hook::exec('Common\\Behavior...', 'app_begin', NULL)
#14 /data/web/Core/Library/Think/App.class.php(201): Think\Hook::listen('app_begin')
#15 /data/web/Core/Library/Think/Think.class.php(122): Think\App::run()
#16 /data/web/Core/ThinkPHP.php(98): Think\Think::start()
#17 /data/web/index.php(61): require('/data/web/Core/...')
#18 {main}