:(

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

错误位置

FILE: /var/www/html/Think/Library/Think/Db/Driver.class.php  LINE: 109

TRACE

#0 /var/www/html/Think/Library/Think/Db/Driver.class.php(109): E('SQLSTATE[HY000]...')
#1 /var/www/html/Think/Library/Think/Db/Driver.class.php(1075): Think\Db\Driver->connect()
#2 /var/www/html/Think/Library/Think/Db/Driver/Mysql.class.php(47): Think\Db\Driver->initConnect(true)
#3 /var/www/html/Think/Library/Think/Model.class.php(134): Think\Db\Driver\Mysql->getFields('web_column')
#4 /var/www/html/Think/Library/Think/Model.class.php(122): Think\Model->flush()
#5 /var/www/html/Think/Library/Think/Model.class.php(1454): Think\Model->_checkTableInfo()
#6 /var/www/html/Think/Library/Think/Model.class.php(97): Think\Model->db(0, '', true)
#7 /var/www/html/Think/Common/functions.php(621): Think\Model->__construct('column', '', '')
#8 /var/www/html/Web/Home/Controller/HomeController.class.php(16): M('column')
#9 /var/www/html/Think/Library/Think/Controller.class.php(41): Home\Controller\HomeController->_initialize()
#10 /var/www/html/Think/Common/functions.php(681): Think\Controller->__construct()
#11 /var/www/html/Think/Library/Think/App.class.php(89): controller('Index', '')
#12 /var/www/html/Think/Library/Think/App.class.php(204): Think\App::exec()
#13 /var/www/html/Think/Library/Think/Think.class.php(120): Think\App::run()
#14 /var/www/html/Think/ThinkPHP.php(97): Think\Think::start()
#15 /var/www/html/index.php(16): require('/var/www/html/T...')
#16 {main}