Topic: Latest PHP 3.5.10 break mysql local socket

Hi,

1st of all many thanks for your job maintaining the repo.

Yesterday I upgrade php, from 3.5.9 (was installed the remi release also) trough Yum, the upgrade works well, no problems at all.

The problem is now I cant connect to mysql trought local socket. If I connect trough 127.0.0.1 (TCP) all is ok. If I connect trough ssh on local socket all is ok as well. The problem is on php and mysql socket.

My mysql socket is on: /var/lib/mysql/mysql.sock and with this permissions: "srwxrwxrwx 1 mysql mysql 0 Feb  4 02:37 /var/lib/mysql/mysql.sock"

I try also to include

pdo_mysql.default_socket = /var/lib/mysql/mysql.sock
mysql.default_socket = /var/lib/mysql/mysql.sock
mysqli.default_socket = /var/lib/mysql/mysql.sock

on php.ini

One error example is when I use drupal:

Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix://%{mysql_sock}) in DatabaseConnection->__construct() (line 304 of /home/xxxxxxxxxxxxxx/public_html/includes/database/database.inc).

This is not only with drupal, is with every php script (phpmyadmin included).

Any clue how to solve this?

Thanks and regards,

Pedro

Re: Latest PHP 3.5.10 break mysql local socket

See http://forums.famillecollet.com/viewtop … 3559#p3559

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

Re: Latest PHP 3.5.10 break mysql local socket

Updating to new release 5.3.10-2 solve this issue.

Thanks!

4 (edited by john7865 2014-02-09 15:18:28)

Re: Latest PHP 3.5.10 break mysql local socket

Aunque se trata de ejercicios en el sentido