-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
php-fpm process: SQLSTATE[HY000] [2002] Connection timed out with database #14911
Comments
Could you try with PHP version 8.2 or higher? Bug fixes for 8.1 have been ended. |
Hi @SakiTakamachi
|
I'm sorry for replying late. |
Hi @SakiTakamachi
|
@thanhtc-kozocom |
No, I am not using This is my PDO options:
|
@thanhtc-kozocom |
Also check the the MySQL server configuration if there are any difference in options. It might potentially have some lower limits. You might also check its logs to see if there is anything suspicious. |
Description
I have a problem with upgrading a server from Centos to Ubuntu (both use Nginx, php, mysql, laravel application)
OS version:
Nginx version:
PHP version:
mysql connection is the same for both servers
php-fpm config is the same for both servers, command check
php-fpm8.1 -tt
When the number of requests is large, the Centos server will operate normally, but the Ubuntu server will have
some requests
with connection timeout errors as follows:Could you please share more knowledge about this issue?
Thank you 🙇
PHP Version
PHP 8.1.29
Operating System
Ubuntu 22.04.4 LTS
The text was updated successfully, but these errors were encountered: