555000ag公海下载-欢迎您

[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 debd3a346e2b6e2b4349794a2948cf8d.php line 295
  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' => 2, 'parentid' => 0, ...]) in Template.php line 226
  10. at Template->fetch('template/pc/show/sho...', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 2, 'parentid' => 0, ...], []) in Think.php line 93
  11. at Think->fetch('template/pc/show/sho...', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 2, 'parentid' => 0, ...], []) in View.php line 189
  12. at View->fetch('show_case', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 2, 'parentid' => 0, ...]) in View.php line 35
  13. at View->output('show_case') 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