MySQL server has gone away #47335
Comments
Solved by max_allowed_packet=100M |
Still happens for me even with 500M, seems random. Percona server is latest, edited /etc/my.cnf |
Same issue with mysql 5.7 |
Anybody - this is a big problem! |
You really need to provide more detail here. Saying it has "gone away" isn't particularly easy to debug. |
@DomT4 How can I provide more info? Thanks |
@craigcarnell To help us debug this issue can you explain:
|
Also, sorry but you have not followed the requested steps on the Troubleshooting page: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting Please follow (all of) these steps and post the information here so we can help you with your problem. Thanks! |
@MikeMcQuaid I am using php 7 to run Magento. It regularly crashes mysql |
@craigcarnell Can you provide your mysql logs? |
|
and
|
launchctl limit maxfiles
ulimit -a
I am going to try:
After a reboot:
But it still crashed:
launchctl limit
|
@craigcarnell Can you try using a MySQL from outside Homebrew with the same version and let us know if it has the same issues? I suspect this is a MySQL rather than Homebrew bug. |
I think this is a MySQL problem. I've been having exactly the same issue, but fixed it by adding It was crashing every 2-3 days, but has been fine for about 4 weeks now. Previously I've tried adding https://github.com/Homebrew/homebrew/blob/master/Library/Formula/mysql.rb#L173 As adding this command line flag, the Two other suggestions I've seen (but did not try) were:
|
I had the same issue when installing TYPO3 7.6 and adding |
Using percona-server
mysqld --version:
Frequently get this trying to run Magento 2 setup. Using PHP 7.0.1
The text was updated successfully, but these errors were encountered: