:(

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

错误位置

FILE: /data/web/ddshjbk/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php  LINE: 55

TRACE

#0 /data/web/ddshjbk/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(55): E('Can't connect t...')
#1 /data/web/ddshjbk/ThinkPHP/Library/Think/Db.class.php(164): Think\Db\Driver\Mysql->connect()
#2 /data/web/ddshjbk/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(92): Think\Db->initConnect(false)
#3 /data/web/ddshjbk/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(211): Think\Db\Driver\Mysql->query('SHOW COLUMNS FR...')
#4 /data/web/ddshjbk/ThinkPHP/Library/Think/Model.class.php(130): Think\Db\Driver\Mysql->getFields('sfjbk_adver')
#5 /data/web/ddshjbk/ThinkPHP/Library/Think/Model.class.php(118): Think\Model->flush()
#6 /data/web/ddshjbk/ThinkPHP/Library/Think/Model.class.php(1264): Think\Model->_checkTableInfo()
#7 /data/web/ddshjbk/ThinkPHP/Library/Think/Model.class.php(95): Think\Model->db(0, '', true)
#8 /data/web/ddshjbk/ThinkPHP/Common/functions.php(486): Think\Model->__construct('Adver', '', '')
#9 /data/web/ddshjbk/Application/Home/Controller/CommonController.class.php(24): M('Adver')
#10 /data/web/ddshjbk/Application/Home/Controller/PubController.class.php(20): Home\Controller\CommonController->_initialize()
#11 /data/web/ddshjbk/Application/Home/Controller/NewsController.class.php(15): Home\Controller\PubController->_initialize()
#12 /data/web/ddshjbk/ThinkPHP/Library/Think/Controller.class.php(41): Home\Controller\NewsController->_initialize()
#13 /data/web/ddshjbk/ThinkPHP/Common/functions.php(535): Think\Controller->__construct()
#14 /data/web/ddshjbk/ThinkPHP/Library/Think/App.class.php(79): A('News')
#15 /data/web/ddshjbk/ThinkPHP/Library/Think/App.class.php(181): Think\App::exec()
#16 /data/web/ddshjbk/ThinkPHP/Library/Think/Think.class.php(117): Think\App::run()
#17 /data/web/ddshjbk/ThinkPHP/ThinkPHP.php(94): Think\Think::start()
#18 /data/web/ddshjbk/index.php(26): require('/data/web/ddshj...')
#19 {main}