:(

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

错误位置

FILE: /var/www/www/html/ThinkPHP/Lib/Core/Db.class.php  LINE: 162

TRACE

[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Db.class.php (162) DbMysql->connect()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (94) Db->initConnect()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (213) DbMysql->query(SHOW COLUMNS FROM `ly_ask`)
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Model.class.php (135) DbMysql->getFields(ly_ask)
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Model.class.php (123) Model->flush()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Model.class.php (1174) Model->_checkTableInfo()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Model.class.php (98) Model->db(0, )
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Common/common.php (270) Model->__construct()
[20-09-27 12:04:09] /var/www/www/html/fxs/Modules/Home/Action/AskAction.class.php (357) D(BAsk)
[20-09-27 12:04:09] () AskAction->view()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/App.class.php (171) ReflectionMethod->invoke()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/App.class.php (207) App::exec()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/Common/runtime.php (242) Think::start()
[20-09-27 12:04:09] /var/www/www/html/ThinkPHP/ThinkPHP.php (30) require(/var/www/www/html/ThinkPHP/Common/runtime.php)
[20-09-27 12:04:09] /var/www/www/html/fxs/Public/index.php (26) require(/var/www/www/html/ThinkPHP/ThinkPHP.php)