SQLSTATE[HY000] [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 11499 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` = '46263444' AND `StationNews`.`status` = '1' AND `StationNews`.`station_id` = 1072 LIMIT 1
    1
    1
    3768
    2
    SELECT `News`.`title`, `News`.`author` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` = 55444343 AND `News`.`status` = '1' LIMIT 1
    1
    1
    11
    3
    SELECT News.content FROM news_contents_4 AS News WHERE News.id = 55444343
    1
    1
    820
    4
    SELECT `StationNews`.`news_id`, `StationNews`.`url_id`, `StationNews`.`publish_time` FROM `stations_news_xiehui`.`station_news` AS `StationNews` WHERE `StationNews`.`station_id` = 1072 AND `StationNews`.`station_page_id` = 7396 AND `StationNews`.`status` = '1' AND `StationNews`.`id` > 46263444 ORDER BY `StationNews`.`id` ASC LIMIT 8
    2
    2
    6888
    5
    SELECT `StationNews`.`news_id`, `StationNews`.`url_id`, `StationNews`.`publish_time` FROM `stations_news_xiehui`.`station_news` AS `StationNews` WHERE `StationNews`.`station_id` = 1072 AND `StationNews`.`station_page_id` = 7396 AND `StationNews`.`status` = '1' AND `StationNews`.`id` < 46263444 ORDER BY `StationNews`.`id` ASC LIMIT 6
    6
    6
    11
    6
    SELECT `News`.`id`, `News`.`title` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` IN (55444344, 55444347, 15047103, 15047104, 15047110, 15047116, 15047220, 15047237) AND `News`.`status` = '1'
    8
    8
    0
    7
    SELECT Chain.publish_time, Chain.chain, Chain.title, Chain.content FROM station_news_chains AS Chain WHERE Chain.id = 46263444
    0
    0
    1