PDOException: SQLSTATE[08004] [1040] Too many connections File=/alidata/www/phpxiu3.0/web/app/config/services.php Line=160 #0 [internal function]: PDO->__construct('mysql:host=127....', 'phpxiu', 'phpxiu', Array) #1 [internal function]: Phalcon\Db\Adapter\Pdo->connect(Array) #2 /alidata/www/phpxiu3.0/web/app/config/services.php(160): Phalcon\Db\Adapter\Pdo->__construct(Array) #3 [internal function]: {closure}() #4 [internal function]: Phalcon\Di\Service->resolve(NULL, Object(Phalcon\Di\FactoryDefault)) #5 [internal function]: Phalcon\Di->get('db', NULL) #6 [internal function]: Phalcon\Di->getShared('db') #7 [internal function]: Phalcon\Mvc\Model\Manager->_getConnection(Object(Rank), NULL) #8 [internal function]: Phalcon\Mvc\Model\Manager->getReadConnection(Object(Rank)) #9 [internal function]: Phalcon\Mvc\Model->getReadConnection() #10 [internal function]: Phalcon\Mvc\Model\Query->_executeSelect(Array, Array, Array) #11 [internal function]: Phalcon\Mvc\Model\Query->execute() #12 [internal function]: Phalcon\Mvc\Model::find(Array) #13 /alidata/www/phpxiu3.0/common/models/Rank.php(55): Phalcon\Mvc\Model\Criteria->execute() #14 /alidata/www/phpxiu3.0/web/app/controllers/RankController.php(13): Rank::getOnline('userrank_recv', 'day', '20170424') #15 [internal function]: RankController->indexAction() #16 [internal function]: Phalcon\Dispatcher->dispatch() #17 /alidata/www/phpxiu3.0/web/public/index.php(28): Phalcon\Mvc\Application->handle() #18 {main}