|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71404 SQLSTATE[HY000] [2006] MySQL server has gone away
Submitted: 2016-01-18 11:40 UTC Modified: 2017-05-21 04:22 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: craig_carnell at hotmail dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 7.0.2 OS: OS X 10.11.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: craig_carnell at hotmail dot com
New email:
PHP Version: OS:


 [2016-01-18 11:40 UTC] craig_carnell at hotmail dot com
When running PHP 7.0.2 with mysqld  Ver 5.7.10 for osx10.11 on x86_64 (Homebrew) I immediately will get a MySQL server has gone away message.

This requires me to constantly restart mysql

SQLSTATE[HY000] [2006] MySQL server has gone away
SQLSTATE[HY000] [2006] MySQL server has gone away
#0 /Users/ccarnell/Sites/xx/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /Users/ccarnell/Sites/xx/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(332): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /Users/ccarnell/Sites/xx/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(861): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect()
#3 /Users/ccarnell/Sites/xx/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(931): Zend_Db_Adapter_Abstract->quote('default', NULL)

Test script:
Run a mysql script, such as logging into Magento 2 Admin panel


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-10 09:52 UTC]
We might need a small sample script which reproduce the problem for your platform which do not need to install/use third party code. Please submit a short script which cause this issue to popup using plain PHP with your MySQL configuration. Thanks
 [2017-05-10 09:54 UTC]
-Status: Open +Status: Feedback
 [2017-05-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 06:01:24 2023 UTC