:(

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

错误位置

FILE: /www/web/bulu/public_html/ThinkPHP/Lib/Core/Db.class.php  LINE: 162

TRACE

[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Db.class.php (162) DbMysql->connect(Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2))
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (94) Db->initConnect()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (213) DbMysql->query()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Model.class.php (135) DbMysql->getFields(SHOW COLUMNS FROM `city`)
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Model.class.php (123) Model->flush(city)
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Model.class.php (1174) Model->_checkTableInfo()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Model.class.php (98) Model->db()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Common/common.php (294) Model->__construct(0, )
[16-09-29 14:39:09] /www/web/bulu/public_html/Home/Lib/Action/IndexAction.class.php (8) M()
[16-09-29 14:39:09] () IndexAction->index(city, , )
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/App.class.php (171) ReflectionMethod->invoke(city)
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/App.class.php (207) App::exec()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/Common/runtime.php (242) Think::start()
[16-09-29 14:39:09] /www/web/bulu/public_html/ThinkPHP/ThinkPHP.php (30) require(/www/web/bulu/public_html/ThinkPHP/Common/runtime.php)
[16-09-29 14:39:09] /www/web/bulu/public_html/index.php (10) require_once(/www/web/bulu/public_html/ThinkPHP/ThinkPHP.php)