您的浏览器版本过低,为保证更佳的浏览体验,请点击更新高版本浏览器

以后再说X
22
11
3
最新动态
联系我们
  • 地址

    Area A of Songjiang Export Processing Zone, Songjiang District, Shanghai,China

  • 电话

    +86-21-5770 9580

  • 邮箱

    info@grinternational.uk

Online Service
微信客服
开云(中国)Kaiyun·官方网站-登录入口

您的浏览器版本过低,为保证更佳的浏览体验,请点击更新高版本浏览器

以后再说X
22
11
3
最新动态
联系我们
  • 地址

    Area A of Songjiang Export Processing Zone, Songjiang District, Shanghai,China

  • 电话

    +86-21-5770 9580

  • 邮箱

    info@grinternational.uk

Online Service
微信客服
System Error

[2002] PDOException in Connection.php line 295

SQLSTATE[HY000] [2002] Connection refused

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