6165金沙总站-首页|欢迎您

[1040] PDOException in Connection.php line 528

SQLSTATE[08004] [1040] Too many connections

  1. try {
  2. if (empty($config['dsn'])) {
  3. $config['dsn'] = $this->parseDsn($config);
  4. }
  5. if ($config['debug']) {
  6. $startTime = microtime(true);
  7. }
  8. $this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
  9. if ($config['debug']) {
  10. // 记录数据库连接信息
  11. $this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
  12. }
  13. return $this->links[$linkNum];
  14. } catch (\PDOException $e) {
  15. if ($autoConnection) {

Call Stack

  1. in Connection.php line 528
  2. at PDO->__construct('mysql:host=127.0.0.1...', 'hxdy', 'hxdyHXDY(890)', [0, 2, 0, ...]) in Connection.php line 528
  3. at Connection->connect() in Connection.php line 2026
  4. at Connection->initConnect(false) in Connection.php line 644
  5. at Connection->query('SELECT * FROM `ylicm...', [], false, false) in Connection.php line 923
  6. at Connection->select(object(Query)) in Query.php line 3007
  7. at Query->select() in aa5d01af2c3b43557886b4e3ef845e93.php line 215
  8. at include('/www/wwwroot/hxdy-bj...') in File.php line 59
  9. at File->read('/www/wwwroot/hxdy-bj...', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 1, 'parentid' => 0, ...]) in Template.php line 226
  10. at Template->fetch('template/pc/lists/li...', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 1, 'parentid' => 0, ...], []) in Think.php line 93
  11. at Think->fetch('template/pc/lists/li...', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 1, 'parentid' => 0, ...], []) in View.php line 189
  12. at View->fetch('lists_product', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 1, 'parentid' => 0, ...]) in View.php line 35
  13. at View->output('lists_product') in Response.php line 396
  14. at Response->getContent() in Response.php line 128
  15. at Response->send() in index.php line 25
Baidu
sogou