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) 6 queries took 14833 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` = '40428724' AND `StationNews`.`status` = '1' AND `StationNews`.`station_id` = 1053 LIMIT 1
    1
    1
    2451
    2
    SELECT `News`.`title`, `News`.`author` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` = 20392001 AND `News`.`status` = '1' LIMIT 1
    1
    1
    3
    3
    SELECT News.content FROM news_contents_2 AS News WHERE News.id = 20392001
    1
    1
    1034
    4
    SELECT `StationNews`.`news_id`, `StationNews`.`url_id`, `StationNews`.`publish_time` FROM `stations_news_xiehui`.`station_news` AS `StationNews` WHERE `StationNews`.`station_id` = 1053 AND `StationNews`.`station_page_id` = 7269 AND `StationNews`.`status` = '1' AND `StationNews`.`id` > 40428724 ORDER BY `StationNews`.`id` ASC LIMIT 12
    12
    12
    11164
    5
    SELECT `News`.`id`, `News`.`title` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` IN (20392003, 20392005, 20392006, 20392009, 20392010, 20392011, 20392016, 20392023, 20392025, 20392027, 20392028, 20392031) AND `News`.`status` = '1'
    12
    12
    181
    6
    SELECT Chain.publish_time, Chain.chain, Chain.title, Chain.content FROM station_news_chains AS Chain WHERE Chain.id = 40428724
    0
    0
    0