:(

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

错误位置

FILE: /srv/www/ctetc/ThinkPHP/Lib/Core/Db.class.php  LINE: 162

TRACE

[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Db.class.php (162) DbMysql->connect()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (94) Db->initConnect()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (213) DbMysql->query(SHOW COLUMNS FROM `pre_train`)
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Model.class.php (135) DbMysql->getFields(pre_train)
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Model.class.php (123) Model->flush()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Model.class.php (1174) Model->_checkTableInfo()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Model.class.php (98) Model->db(0, )
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Common/common.php (294) Model->__construct(Train, , )
[18-12-13 14:27:12] /srv/www/ctetc/Application/Lib/Action/Home/CommonAction.class.php (4) M(Train)
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Action.class.php (57) CommonAction->_initialize()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Common/common.php (321) Action->__construct()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/App.class.php (103) A(Home/Train)
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/App.class.php (207) App::exec()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/Common/runtime.php (242) Think::start()
[18-12-13 14:27:12] /srv/www/ctetc/ThinkPHP/ThinkPHP.php (30) require(/srv/www/ctetc/ThinkPHP/Common/runtime.php)
[18-12-13 14:27:12] /srv/www/ctetc/index.php (16) require(/srv/www/ctetc/ThinkPHP/ThinkPHP.php)