:(

SQLSTATE[HY000] [2002] Connection timed out

错误位置

FILE: /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 109

TRACE

#0 /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php(109): E('SQLSTATE[HY000]...')
#1 /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php(1059): Think\Db\Driver->connect()
#2 /home/bae/app/ThinkPHP/Library/Think/Db/Driver/Mysql.class.php(50): Think\Db\Driver->initConnect(true)
#3 /home/bae/app/ThinkPHP/Library/Think/Model.class.php(134): Think\Db\Driver\Mysql->getFields('hope_siteinfo')
#4 /home/bae/app/ThinkPHP/Library/Think/Model.class.php(122): Think\Model->flush()
#5 /home/bae/app/ThinkPHP/Library/Think/Model.class.php(1429): Think\Model->_checkTableInfo()
#6 /home/bae/app/ThinkPHP/Library/Think/Model.class.php(97): Think\Model->db(0, '', true)
#7 /home/bae/app/ThinkPHP/Common/functions.php(619): Think\Model->__construct('Siteinfo', '', '')
#8 /home/bae/app/Apps/En/Controller/CommonController.class.php(9): M('Siteinfo')
#9 /home/bae/app/ThinkPHP/Library/Think/Controller.class.php(41): En\Controller\CommonController->_initialize()
#10 /home/bae/app/ThinkPHP/Common/functions.php(679): Think\Controller->__construct()
#11 /home/bae/app/ThinkPHP/Library/Think/App.class.php(89): controller('Index', '')
#12 /home/bae/app/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#13 /home/bae/app/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#14 /home/bae/app/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#15 /home/bae/app/index.php(43): require('/home/bae/app/T...')
#16 {main}