Exception detected!

SQLSTATE[HY000] [1040] Too many connections

500 Internal Server Error - PDOException

Stack Trace

  1. in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php at line 40  -
    1.      */
    2.     public function __construct($dsn$user null$password null, array $options null)
    3.     {
    4.         parent::__construct($dsn$user$password$options);
    5.         $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
    6.         $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
    7.     }
  2. at PDO ->__construct ('mysql:host=192.168.50.52;dbname=ibbk;charset=UTF8;', 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php at line 40  +
  3. at PDOConnection ->__construct ('mysql:host=192.168.50.52;dbname=ibbk;charset=UTF8;', 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php at line 41  +
  4. at Driver ->connect (array('driver' => 'pdo_mysql', 'host' => '192.168.50.52', 'port' => null, 'dbname' => 'ibbk', 'user' => 'ibbk', 'password' => 'QugYCe3apIFsOwQA', 'charset' => 'UTF8', 'driverOptions' => array(), 'defaultTableOptions' => array()), 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php at line 356  +
  5. at Connection ->connect ()
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php at line 680  +
  6. at Connection ->executeQuery ('SELECT i0_.id AS id0, i0_.value AS value1, i0_.type AS type2, i0_.priority AS priority3, i0_.visit_count AS visit_count4, i0_.created_at AS created_at5, i0_.updated_at AS updated_at6, -i0_.priority AS sclr7, i0_.created_by AS created_by8, i0_.updated_by AS updated_by9 FROM ibbk_keyword i0_ WHERE i0_.type = ? ORDER BY sclr7 DESC', array('active_substances'), array('2'), null)
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php at line 50  +
  7. at SingleSelectExecutor ->execute (object(Connection), array('active_substances'), array('2'))
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 286  +
  8. at Query ->_doExecute ()
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 794  +
  9. at AbstractQuery ->execute (null, '1')
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 574  +
  10. at AbstractQuery ->getResult ()
    in src/AppBundle/Repository/KeywordRepository.php at line 105  +
  11. at KeywordRepository ->findByType ('active_substances')
    in src/AppBundle/Service/DictionaryService.php at line 73  +
  12. at DictionaryService ->getHomePageBoxes ()
    in src/AppBundle/Controller/DefaultController.php at line 31  +
  13. at DefaultController ->indexAction ()
  14. at call_user_func_array (array(object(DefaultController), 'indexAction'), array())
    in app/bootstrap.php.cache at line 3054  +
  15. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  16. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  17. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  18. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +