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 10761 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` = '41488686' AND `StationNews`.`status` = '1' AND `StationNews`.`station_id` = 1053 LIMIT 1
    1
    1
    3648
    2
    SELECT `News`.`title`, `News`.`author` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` = 27854958 AND `News`.`status` = '1' LIMIT 1
    1
    1
    2
    3
    SELECT News.content FROM news_contents_9 AS News WHERE News.id = 27854958
    1
    1
    2481
    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` = 7267 AND `StationNews`.`status` = '1' AND `StationNews`.`id` > 41488686 ORDER BY `StationNews`.`id` ASC LIMIT 12
    12
    12
    4594
    5
    SELECT `News`.`id`, `News`.`title` FROM `stations_news_xiehui`.`news` AS `News` WHERE `News`.`id` IN (27854960, 27854963, 27854969, 27854972, 27854973, 27854978, 27854982, 27854987, 27854989, 27854994, 27854995, 27855000) AND `News`.`status` = '1'
    12
    12
    36
    6
    SELECT Chain.publish_time, Chain.chain, Chain.title, Chain.content FROM station_news_chains AS Chain WHERE Chain.id = 41488686
    0
    0
    0