php.net |  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
Votes:2
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: craig_carnell at hotmail dot com
New email:
PHP Version: OS:

 

 [2016-01-18 11:40 UTC] craig_carnell at hotmail dot com
Description:
------------
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 

http://www.xxx.local/admin/




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-10 09:52 UTC] fjanisze@php.net
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] fjanisze@php.net
-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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC