[1040]PDOExceptionin Connection.php line 300SQLSTATE[HY000] [1040] Too many connections
$this->fetchType = $config['result_type'];
}
try {
if (empty($config[‘dsn’])) {
$config[‘dsn’] = KaTeX parse error: Expected 'EOF', got '&' at position 6: this-&̲gt;parseDsn(config);
}
if ($config[‘debug’]) {
$startTime = microtime(true);
}
KaTeX parse error: Expected 'EOF', got '&' at position 6: this-&̲gt;links[linkNum] = new PDO($config[‘dsn’], $config[‘username’], $config[‘password’], params);
if(params);
="line−301">
if (params);</code></li><liclass="line−301"><code>if(config[‘debug’]) {
// 记录数据库连接信息
Log::record(’[ DB ] CONNECT:[ UseTime:’ . number_format(microtime(true) - $startTime, 6) . ‘s ] ’ . $config[‘dsn’], ‘sql’);
}
} catch (\PDOException KaTeX parse error: Expected '}', got 'EOF' at end of input: … if (autoConnection) {
Log::record($e->getMessage(), ‘error’);
return KaTeX parse error: Expected 'EOF', got '&' at position 6: this-&̲gt;connect(autoConnection, KaTeX parse error: Expected 'EOF', got '}' at position 66: … }̲ else {
…%&*=YLMY*&%KaTeX parse error: Expected 'EOF', got '#' at position 1: #̲@!=">ylmy!@#%&*=YLMY*&…’, [0, 2, 0, …]) in Connection.php line 300
atConnection->connect() in Connection.php line 934
atConnection->initConnect(false) in Connection.php line 357
atConnection->query(‘SELECT * FROM tpn_g...
', ['where_status' => [1, 1], 'where_type' => [1, 1], 'where_id' => [30, 1]], false, false) in Query.php line 225
atQuery->query('SELECT * FROMtpn_g…’, [‘where_status’ => [1, 1], ‘where_type’ => [1, 1], ‘where_id’ => [30, 1]], false, false) in Query.php line 2453
atQuery->find([‘id’ => 30]) in Index.php line 394
atIndex->getcate()
atReflectionMethod->invokeArgs(object(Index), []) in App.php line 224
atApp::invokeMethod([object(Index), ‘getcate’], []) in App.php line 418
atApp::module([‘api’, ‘common’, ‘index’, …], [‘app_namespace’ => ‘app’, ‘app_debug’ => true, ‘app_trace’ => false, …], true) in App.php line 130
atApp::run() in start.php line 18
at require(’/www/wwwroot/yilingm…’) in index.php line 28