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...', ['ThinkBind_1_' => [1, 1]], false, false) in Connection.php line 844
  6. at Connection->find(object(Query)) in Query.php line 3131
  7. at Query->find(1) in common.php line 24
  8. at site('def_pic') in common.php line 19
  9. at imgUrl('20210204/c6e8440089e...') in 80d8de8fd6369b0856a37f745bf26860.php line 191
  10. at include('/www/wwwroot/hxdy-bj...') in File.php line 59
  11. 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' => 45, 'parentid' => 1, ...]) in Template.php line 226
  12. 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' => 45, 'parentid' => 1, ...], []) in Think.php line 93
  13. 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' => 45, 'parentid' => 1, ...], []) in View.php line 189
  14. at View->fetch('show_pro', ['CATEGORYS' => [['id' => 2, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 3, 'parent_id' => 0, 'catid' => 0, ...], ['id' => 4, 'parent_id' => 0, 'catid' => 0, ...], ...], 'catid' => 45, 'parentid' => 1, ...]) in View.php line 35
  15. at View->output('show_pro') in Response.php line 396
  16. at Response->getContent() in Response.php line 128
  17. at Response->send() in index.php line 25
Baidu
sogou