[2002] PDOException

浏览:826 发布日期:2018/07/13 分类:求助交流
连续刷新 刷得很快 才会出现
[2002] PDOException in Connection.php line 526
try {
if (empty($config['dsn'])) {
$config['dsn'] = $this->parseDsn($config);
}

if ($config['debug']) {
$startTime = microtime(true);
}

$this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);

if ($config['debug']) {
// 记录数据库连接信息
$this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
}

return $this->links[$linkNum];
} catch (\PDOException $e) {
if ($autoConnection) {
最佳答案
评论( 相关
后面还有条评论,点击查看>>