PHP
1 “Too many connections”错误
1.1 错误提示
[Mon Mar 11 15:17:14.533289 2019] [php7:error] [pid 20199:tid 140561442842368] [client 10.168.0.119:50581] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [1040] Too many connections in /var/www/owncloud/lib/private/DB/Connection.php:62\nStack trace:\n#0
1.2 解决方法
vim /etc/php.ini
修改如下参数,
pcre.jit=0
1.3 参阅连接
https://github.com/doctrine/dbal/issues/2819
http://php.net/manual/en/pcre.configuration.php
没有评论