:(

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

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