:(

Can't connect to local MySQL server through socket '/data/mysql/mysql.sock' (2)

错误位置

FILE: /data/www/uk/Core/ThinkPHP/Lib/Core/Db.class.php  LINE: 162

TRACE

[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Db.class.php (162) DbMysql->connect()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (94) Db->initConnect()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (213) DbMysql->query(SHOW COLUMNS FROM `lfa_setting`)
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Model.class.php (135) DbMysql->getFields(lfa_setting)
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Model.class.php (123) Model->flush()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Model.class.php (1174) Model->_checkTableInfo()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Model.class.php (98) Model->db(0, )
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Common/common.php (270) Model->__construct()
[16-05-30 22:25:05] /data/www/uk/App/Modules/Home/Action/HomeCommonAction.class.php (11) D(Setting)
[16-05-30 22:25:05] /data/www/uk/App/Modules/Home/Action/IndexAction.class.php (12) HomeCommonAction->_initialize()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Action.class.php (57) IndexAction->_initialize()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Common/common.php (321) Action->__construct()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/App.class.php (103) A(Index)
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/App.class.php (207) App::exec()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/Common/runtime.php (242) Think::start()
[16-05-30 22:25:05] /data/www/uk/Core/ThinkPHP/ThinkPHP.php (30) require(/data/www/uk/Core/ThinkPHP/Common/runtime.php)
[16-05-30 22:25:05] /data/www/uk/index.php (9) require(/data/www/uk/Core/ThinkPHP/ThinkPHP.php)