Detailed error report
SQLSTATE [HY000] [1040] Too many connections
Too many Mysql connections
I found the code problem all afternoon, and changed the Mysql configuration all afternoon
Solution
Enter: databases.php
Modify: params
// 数据库连接参数
'params' => [
\PDO::ATTR_PERSISTENT => true,
\PDO::ATTR_CASE => \PDO::CASE_LOWER,
],