-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySQL server has gone away due to Connection timed out - prepare result #5495
Comments
Code Try to reconnect to the database. more info : jingjingxyk/swoole-cli#125 |
Of course I understand this and I have tried many different options and reconnect as well. Maybe I should update swoole and php but now I can't do it yet. |
Are you using connection pool outside of that example you gave above? Maybe you've hit your server limit and that's why you can't create additional connections? |
Please answer these questions before submitting your issue.
What did you expect to see?
A positive result prepare
What did you see instead?
connect
bool(true)
prepare [1]
bool(false)
int(2006)
string(77) "SQLSTATE[HY000] [2006] MySQL server has gone away due to Connection timed out"
What version of Swoole are you using (show your
php --ri swoole
)?PHP | 7.4.33 |
Swoole | 4.8.13 |
What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?Linux
The text was updated successfully, but these errors were encountered: