# Harcoded mysql.sock path in mysqlnd extension

- Thread: https://externals.io/message/57359
- Original archive: https://news-web.php.net/php.internals/57359
- Started by Remi Collet on 2012-01-13T17:28:47+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #57359 — Remi Collet — 2012-01-13T17:28:47+00:00

URL: https://externals.io/message/57359#57359

I fill a bug : https://bugs.php.net/bug.php?id=60748
(trivial patch proposed, shouldn't break anything)

Just a notice, there is no mysqlnd component in bug tracker...
(or I was unable to find it...)

Remi.

---

## #57367 — johannes@schlueters.de — 2012-01-14T23:12:55+00:00

URL: https://externals.io/message/57359#57367 · In reply to: #57359

> I fill a bug : https://bugs.php.net/bug.php?id=60748
> (trivial patch proposed, shouldn't break anything)
> 
> Just a notice, there is no mysqlnd component in bug tracker...
> (or I was unable to find it...)

In what case do you notice that? - ext/mysql, mysqli and PDO_mysql
should override that. Only case I can see would be some mysqlnd plugin
overriding the host.

johannes

> Remi.

---

## #57374 — Remi Collet — 2012-01-16T10:19:59+00:00

URL: https://externals.io/message/57359#57374 · In reply to: #57367

Le 15/01/2012 00:12, Johannes Schlüter a écrit :

> In what case do you notice that? - ext/mysql, mysqli and PDO_mysql
> should override that. Only case I can see would be some mysqlnd plugin
> overriding the host.

You're right, this patch is an old one, before bug #60155 was fixed (in
r318696), and it works without it.

Sorry for the noise.

Remi.


P.S. well, don't know if having such a hardcoded path is a good idea...

---

## #57379 — Ulf Wendel — 2012-01-16T17:39:33+00:00

URL: https://externals.io/message/57359#57379 · In reply to: #57374

Am 16.01.2012 11:19, schrieb Remi Collet:
> P.S. well, don't know if having such a hardcoded path is a good idea...

mysqlnd is a libmysql drop-in replacement. Guess what libmysql does... - 
do "strings libmysqlclient.so | grep mysql.sock" on a standard source build.

Ulf

---

## #57380 — Remi Collet — 2012-01-16T18:04:38+00:00

URL: https://externals.io/message/57359#57380 · In reply to: #57379

Le 16/01/2012 18:39, Ulf Wendel a écrit :
> Am 16.01.2012 11:19, schrieb Remi Collet:
> > […]
> 
> mysqlnd is a libmysql drop-in replacement. Guess what libmysql does... -
> do "strings libmysqlclient.so | grep mysql.sock" on a standard source
> build.

$ strings /usr/lib64/mysql/libmysqlclient.so.18 | grep mysql.sock
/var/lib/mysql/mysql.sock

Which is taken from configure option
--with-unix-socket-path=/var/lib/mysql/mysql.sock

Default (cmake config) is /tmp/mysql.sock, but even upstream package
don't use it and set it to %{mysqldatadir}/mysql.sock

I'm ok with the hardcoded default value of /tmp/mysql.sock.
I just don't understand why mysqlnd doesn't honour config option (even
if this value will probably be never used)

Regards,
Remi.
