SQLSTATE[08004] [1040] Too many connections

Error: An Internal Error Has Occurred.

Stack Trace

  • CORE/Cake/Model/Datasource/DboSource.php line 260Mysql->connect()
  • CORE/Cake/Model/ConnectionManager.php line 105DboSource->__construct(array)
  • CORE/Cake/Model/Model.php line 3626ConnectionManager::getDataSource(string)
  • CORE/Cake/Model/Model.php line 1155Model->setDataSource(string)
  • CORE/Cake/Model/Model.php line 3653Model->setSource(string)
  • CORE/Cake/Model/Model.php line 3455Model->getDataSource()
  • APP/Controller/StationsController.php line 278Model->query(string)
  • APP/Controller/StationsController.php line 260StationsController->getLinks(string, integer, string)
  • [internal function]StationsController->detail()
  • CORE/Cake/Controller/Controller.php line 491ReflectionMethod->invokeArgs(StationsController, array)
  • CORE/Cake/Routing/Dispatcher.php line 193Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 167Dispatcher->_invoke(StationsController, CakeRequest)
  • APP/webroot/index.php line 111Dispatcher->dispatch(CakeRequest, CakeResponse)
  • (news) 7 queries took 10596 ms
    NrQueryErrorAffectedNum. rowsTook (ms)
    1
    SELECT `StationNews`.`id`, `StationNews`.`station_page_id`, `StationNews`.`news_id`, `StationNews`.`publish_time` FROM `stations_news_xiehui`.`station_news` AS `StationNews` WHERE `StationNews`.`url_id` = '43539623' AND `StationNews`.`status` = '1' AND `StationNews`.`station_id` = 1081 LIMIT 1
    1
    1
    187
    2
    SELECT `News`.`title`, `News`.`author` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` = 44406438 AND `News`.`status` = '1' LIMIT 1
    1
    1
    0
    3
    SELECT News.content FROM news_contents_9 AS News WHERE News.id = 44406438
    1
    1
    1860
    4
    SELECT `StationNews`.`news_id`, `StationNews`.`url_id`, `StationNews`.`publish_time` FROM `stations_news_xiehui`.`station_news` AS `StationNews` WHERE `StationNews`.`station_id` = 1081 AND `StationNews`.`station_page_id` = 7456 AND `StationNews`.`status` = '1' AND `StationNews`.`id` > 43539623 ORDER BY `StationNews`.`id` ASC LIMIT 8
    8
    8
    6330
    5
    SELECT `News`.`id`, `News`.`title` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` IN (44406442, 44408325, 44408329, 44408330, 44408431, 44409936, 44409938, 44409947) AND `News`.`status` = '1'
    8
    8
    695
    6
    SELECT Chain.publish_time, Chain.chain, Chain.title, Chain.content FROM station_news_chains AS Chain WHERE Chain.id = 43539623
    1
    1
    747
    7
    SELECT Chain.publish_time, Chain.chain, Chain.title, Chain.content FROM station_news_replace_chains AS Chain WHERE Chain.id = 43539623
    0
    0
    777