Topic: PHP 8.1.10 Amazon Linux 2 Connect to mySQL failed

Hi,

sice updating to remi php 8.1.10 on amazon linux 2 I sometimes get error "connect to mysql server localhost failed".
SQL server is up and running and after reload it connects right away.

Any idea on this issue?

Re: PHP 8.1.10 Amazon Linux 2 Connect to mySQL failed

Upgrading from which version ?
Using which extension ?

I don't see any change related to MySQL in 8.1.10 ChangeLog

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

3 (edited by Troubadix 2022-09-02 07:59:28)

Re: PHP 8.1.10 Amazon Linux 2 Connect to mySQL failed

Old version was 8.1.9.

I downgraded 8.1.10 to 8.1.9 and the error seems to be gone.
MariaDB is 10.7.5
nginx 1.23.1 with php-fpm

[root@ip-10-104-182-107]# yum list installed | grep -i php
gd3php.x86_64                       2.3.3-7.el7.remi                 @remi-safe
oniguruma5php.x86_64                6.9.8-1.el7.remi                 @remi-safe
php.x86_64                          8.1.9-1.el7.remi                 @remi-php81
php-bcmath.x86_64                   8.1.9-1.el7.remi                 @remi-php81
php-cli.x86_64                      8.1.9-1.el7.remi                 @remi-php81
php-common.x86_64                   8.1.9-1.el7.remi                 @remi-php81
php-gd.x86_64                       8.1.9-1.el7.remi                 @remi-php81
php-intl.x86_64                     8.1.9-1.el7.remi                 @remi-php81
php-mbstring.x86_64                 8.1.9-1.el7.remi                 @remi-php81
php-mysqlnd.x86_64                  8.1.9-1.el7.remi                 @remi-php81
php-pdo.x86_64                      8.1.9-1.el7.remi                 @remi-php81
php-pecl-imagick-im6.x86_64         3.7.0-1.el7.remi.8.1             @remi-php81
php-process.x86_64                  8.1.9-1.el7.remi                 @remi-php81
php-sodium.x86_64                   8.1.9-1.el7.remi                 @remi-php81
php-tidy.x86_64                     8.1.9-1.el7.remi                 @remi-php81
php-xml.x86_64                      8.1.9-1.el7.remi                 @remi-php81
php81-php-bcmath.x86_64             8.1.9-1.el7.remi                 @remi-safe
php81-php-cli.x86_64                8.1.9-1.el7.remi                 @remi-safe
php81-php-common.x86_64             8.1.9-1.el7.remi                 @remi-safe
php81-php-devel.x86_64              8.1.9-1.el7.remi                 @remi-safe
php81-php-fpm.x86_64                8.1.9-1.el7.remi                 @remi-safe
php81-php-gd.x86_64                 8.1.9-1.el7.remi                 @remi-safe
php81-php-intl.x86_64               8.1.9-1.el7.remi                 @remi-safe
php81-php-ldap.x86_64               8.1.9-1.el7.remi                 @remi-safe
php81-php-mbstring.x86_64           8.1.9-1.el7.remi                 @remi-safe
php81-php-mysqlnd.x86_64            8.1.9-1.el7.remi                 @remi-safe
php81-php-opcache.x86_64            8.1.9-1.el7.remi                 @remi-safe
php81-php-pdo.x86_64                8.1.9-1.el7.remi                 @remi-safe
php81-php-pecl-imagick-im6.x86_64   3.7.0-1.el7.remi                 @remi-safe
php81-php-process.x86_64            8.1.9-1.el7.remi                 @remi-safe
php81-php-sodium.x86_64             8.1.9-1.el7.remi                 @remi-safe
php81-php-xml.x86_64                8.1.9-1.el7.remi                 @remi-safe
php81-runtime.x86_64                8.1-1.el7.remi                   @remi-safe

Re: PHP 8.1.10 Amazon Linux 2 Connect to mySQL failed

Sorry, I don't see any revelant change on 8.1.10... (excepted perhaps minor change in stream...)

Try to report this upstream
Will also see if other are affected


P.S. I'm still on Holidays, so with small time available online

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi