:(

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

错误位置

FILE: /var/www/html/jt_eduask/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php  LINE: 55

TRACE

#0 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(55): E('Can't connect t...')
#1 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Db.class.php(164): Think\Db\Driver\Mysql->connect()
#2 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(84): Think\Db->initConnect(false)
#3 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(207): Think\Db\Driver\Mysql->query('SHOW COLUMNS FR...')
#4 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Model.class.php(130): Think\Db\Driver\Mysql->getFields('edu_seo')
#5 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Model.class.php(118): Think\Model->flush()
#6 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Model.class.php(1298): Think\Model->_checkTableInfo()
#7 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, '', true)
#8 /var/www/html/jt_eduask/ThinkPHP/Common/functions.php(528): Think\Model->__construct('Seo')
#9 /var/www/html/jt_eduask/Application/Home/Controller/HomeController.class.php(17): D('Seo')
#10 /var/www/html/jt_eduask/Application/Home/Controller/IndexController.class.php(6): Home\Controller\HomeController->getSeo(41)
#11 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Controller.class.php(41): Home\Controller\IndexController->_initialize()
#12 /var/www/html/jt_eduask/ThinkPHP/Common/functions.php(612): Think\Controller->__construct()
#13 /var/www/html/jt_eduask/ThinkPHP/Library/Think/App.class.php(87): controller('Index', '')
#14 /var/www/html/jt_eduask/ThinkPHP/Library/Think/App.class.php(200): Think\App::exec()
#15 /var/www/html/jt_eduask/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#16 /var/www/html/jt_eduask/ThinkPHP/ThinkPHP.php(96): Think\Think::start()
#17 /var/www/html/jt_eduask/index.php(24): require('/var/www/html/j...')
#18 {main}