有时当用户访问应用程序时。。。有一个异常抛出后,该应用程序正常工作了一段时间,如果有一段时间没有活动,我又得到了那个异常。 Uncaught PHP Exception Doctrine\DBAL\Driver\PDOException: "SQLSTATE[HY000]: General error: 2006 MySQL server has gone away" at /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php line 107 {"exception":"[object] (Doctrine\\DBAL\\Driver\\PDOException(code: HY000): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:107, PDOException(code: HY000): SQLSTATE[HY000]: General error: 2006 MySQL server has gone away at /vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105)"} []
我的php版本是5.6
mysql版本是5.6
我在谷歌上搜索一些答案,但什么都没用。
调试结果 SHOW STATUS WHERE
变量名称
= 'Threads_connected' SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"
Mysql max number of connection = 100
session wait_timeout = 328800
global wait_timeout = 328800
暂无答案!
目前还没有任何答案,快来回答吧!