/www/wwwroot/frogboy.com/
Illuminate\Database\QueryException
SQLSTATE[HY000] [1040] Too many connections (SQL: select `id`, `name`, `icon`, `icon_alt`, `seo_t`, `seo_k`, `seo_d`, `content` from `category_web` where `category_web`.`id` = 477 limit 1)
    • 60
      vendor/laravel/framework/src/Illuminate/Database/Connection.php
      Illuminate\Database\Connection
      :712
    • 59
      Illuminate\Database\Connection
      :672
    • 58
      Illuminate\Database\Connection
      :359
    • 49
      app/Http/Controllers/IndexController.php
      App\Http\Controllers\IndexController
      :48
    • 42
      app/Http/Middleware/CachePage.php
      App\Http\Middleware\CachePage
      :57
    • 40
      app/Http/Middleware/OutSide.php
      App\Http\Middleware\OutSide
      :39
    • 1
      public/index.php
      :52
Illuminate\Database\Connection::runQueryCallback
vendor/laravel/framework/src/Illuminate/Database/Connection.php:712

697

698

699

700

701

702

703

704

705

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

* @throws \Illuminate\Database\QueryException

*/

protected function runQueryCallback($query, $bindings, Closure $callback)

{

// To execute the statement, we'll simply call the callback, which will actually

// run the SQL against the PDO connection. Then we can calculate the time it

// took to execute and log the query SQL, bindings and time in our memory.

try {

return $callback($query, $bindings);

}

 

// If an exception occurs when attempting to run a query, we'll format the error

// message to include the bindings with SQL, which will make this exception a

// lot more helpful to the developer instead of just the database's errors.

catch (Exception $e) {

throw new QueryException(

$query, $this->prepareBindings($bindings), $e

);

}

}

 

/**

* Log a query in the connection's query log.

*

* @param string $query

* @param array $bindings

* @param float|null $time

* @return void

*/

public function logQuery($query, $bindings, $time = null)

{